Commit 4a93c46e authored by Bernhard Schuster's avatar Bernhard Schuster
Browse files

Revert "fixup: avoid underflow issue"

This reverts commit 336cbe29.
parent ebdbafa5
......@@ -417,8 +417,8 @@ where
let (lag, subchain_head) = if cfg!(feature = "disputes") {
// Prevent sending flawed data to the dispute-coordinator.
if Some(subchain_block_descriptions.len() as u64) !=
(subchain_number + 1_u64).checked_sub(target_number)
if Some(subchain_block_descriptions.len() as u32 - 1) !=
subchain_number.checked_sub(target_number)
{
tracing::error!(
LOG_TARGET,
......
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