@@ -81,7 +81,7 @@ async fn missed_blocks_across_epochs() {
8181 epoch,
8282 decision_root,
8383 state
84- . get_beacon_proposer_indices ( & harness. chain . spec )
84+ . get_beacon_proposer_indices ( epoch , & harness. chain . spec )
8585 . unwrap ( ) ,
8686 state. fork ( ) ,
8787 )
@@ -147,7 +147,9 @@ async fn missed_blocks_basic() {
147147 let mut slot_in_epoch = slot % slots_per_epoch;
148148 let mut prev_slot = Slot :: new ( idx - 1 ) ;
149149 let mut duplicate_block_root = * _state. block_roots ( ) . get ( idx as usize ) . unwrap ( ) ;
150- let mut validator_indexes = _state. get_beacon_proposer_indices ( & harness1. spec ) . unwrap ( ) ;
150+ let mut validator_indexes = _state
151+ . get_beacon_proposer_indices ( epoch, & harness1. spec )
152+ . unwrap ( ) ;
151153 let mut missed_block_proposer = validator_indexes[ slot_in_epoch. as_usize ( ) ] ;
152154 let mut proposer_shuffling_decision_root = _state
153155 . proposer_shuffling_decision_root ( duplicate_block_root)
@@ -219,7 +221,9 @@ async fn missed_blocks_basic() {
219221 prev_slot = Slot :: new ( idx - 1 ) ;
220222 slot_in_epoch = slot % slots_per_epoch;
221223 duplicate_block_root = * _state2. block_roots ( ) . get ( idx as usize ) . unwrap ( ) ;
222- validator_indexes = _state2. get_beacon_proposer_indices ( & harness2. spec ) . unwrap ( ) ;
224+ validator_indexes = _state2
225+ . get_beacon_proposer_indices ( epoch, & harness2. spec )
226+ . unwrap ( ) ;
223227 missed_block_proposer = validator_indexes[ slot_in_epoch. as_usize ( ) ] ;
224228
225229 let beacon_proposer_cache = harness2
@@ -317,7 +321,9 @@ async fn missed_blocks_basic() {
317321 slot_in_epoch = slot % slots_per_epoch;
318322 prev_slot = Slot :: new ( idx - 1 ) ;
319323 duplicate_block_root = * _state3. block_roots ( ) . get ( idx as usize ) . unwrap ( ) ;
320- validator_indexes = _state3. get_beacon_proposer_indices ( & harness3. spec ) . unwrap ( ) ;
324+ validator_indexes = _state3
325+ . get_beacon_proposer_indices ( epoch, & harness3. spec )
326+ . unwrap ( ) ;
321327 missed_block_proposer = validator_indexes[ slot_in_epoch. as_usize ( ) ] ;
322328 proposer_shuffling_decision_root = _state3
323329 . proposer_shuffling_decision_root_at_epoch ( epoch, duplicate_block_root)
0 commit comments