mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 14:58:31 +00:00
test fixes
This commit is contained in:
@@ -659,7 +659,7 @@ impl ProtoArrayForkChoice {
|
||||
)?;
|
||||
|
||||
// Only re-org a single slot. This prevents cascading failures during asynchrony.
|
||||
let head_slot_ok = info.head_node.slot() + 1 == current_slot;
|
||||
let head_slot_ok = info.head_node.slot().saturating_add(1_u64) == current_slot;
|
||||
if !head_slot_ok {
|
||||
return Err(DoNotReOrg::HeadDistance.into());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user