mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
Simplify/cleanup
This commit is contained in:
@@ -420,7 +420,7 @@ impl<E: EthSpec> Case for ForkChoiceTest<E> {
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => result?,
|
||||
Some(true) | None => result?,
|
||||
}
|
||||
}
|
||||
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),
|
||||
@@ -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
|
||||
.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();
|
||||
assert_eq!(slot, self.harness.chain.slot().unwrap());
|
||||
self.harness
|
||||
.chain
|
||||
.canonical_head
|
||||
|
||||
Reference in New Issue
Block a user