We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a476d8 commit af402bbCopy full SHA for af402bb
1 file changed
consensus/types/src/eth_spec.rs
@@ -600,9 +600,14 @@ mod test {
600
use ssz_types::typenum::Unsigned;
601
602
fn assert_valid_spec<E: EthSpec>() {
603
+ let spec = E::default_spec();
604
E::kzg_commitments_tree_depth();
605
E::block_body_tree_depth();
606
assert!(E::MaxValidatorsPerSlot::to_i32() >= E::MaxValidatorsPerCommittee::to_i32());
607
+ assert_eq!(
608
+ E::proposer_lookahead_slots(),
609
+ (spec.min_seed_lookahead.as_usize() + 1) * E::slots_per_epoch() as usize
610
+ );
611
}
612
613
#[test]
0 commit comments