Commit 970647f3 authored by Lldenaurois's avatar Lldenaurois
Browse files

Update sanity check in relay chain selection

parent a11fe9c0
Pipeline #154887 failed with stages
in 20 minutes and 20 seconds
......@@ -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!(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment