Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Update sanity check in relay chain selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Lldenaurois committed Aug 31, 2021
1 parent a11fe9c commit 970647f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/service/src/relay_chain_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ where

let (lag, subchain_head) = if cfg!(feature = "disputes") {
// Prevent sending flawed data to the dispute-coordinator.
if Some(subchain_block_descriptions.len() as _) !=
if Some(subchain_block_descriptions.len() as u32 - 1) !=
subchain_number.checked_sub(target_number)
{
tracing::error!(
Expand Down

0 comments on commit 970647f

Please sign in to comment.