test fixes

This commit is contained in:
hopinheimer
2026-03-02 15:33:53 -05:00
parent 6f6da5b393
commit 275ac11200
3 changed files with 29 additions and 33 deletions

View File

@@ -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());
}