Simplify/cleanup

This commit is contained in:
Michael Sproul
2026-05-20 12:14:37 +10:00
parent 8a3ac10fbc
commit db6cb5ac32

View File

@@ -420,7 +420,7 @@ impl<E: EthSpec> Case for ForkChoiceTest<E> {
} }
} }
} }
_ => result?, Some(true) | None => result?,
} }
} }
Step::AttesterSlashing { Step::AttesterSlashing {
@@ -437,7 +437,7 @@ impl<E: EthSpec> Case for ForkChoiceTest<E> {
)); ));
} }
} }
_ => result?, Some(true) | None => result?,
} }
} }
Step::PowBlock { pow_block } => tester.process_pow_block(pow_block), Step::PowBlock { pow_block } => tester.process_pow_block(pow_block),
@@ -548,7 +548,7 @@ impl<E: EthSpec> Case for ForkChoiceTest<E> {
)); ));
} }
} }
_ => result?, Some(true) | None => result?,
} }
} }
} }
@@ -650,7 +650,9 @@ impl<E: EthSpec> Tester<E> {
.slot_clock .slot_clock
.set_current_time(Duration::from_secs(tick)); .set_current_time(Duration::from_secs(tick));
// Compute the slot time manually to ensure the slot clock is correct.
let slot = self.tick_to_slot(tick).unwrap(); let slot = self.tick_to_slot(tick).unwrap();
assert_eq!(slot, self.harness.chain.slot().unwrap());
self.harness self.harness
.chain .chain
.canonical_head .canonical_head