@@ -81,7 +81,7 @@ async fn missed_blocks_across_epochs() {
81
81
epoch,
82
82
decision_root,
83
83
state
84
- . get_beacon_proposer_indices ( & harness. chain . spec )
84
+ . get_beacon_proposer_indices ( epoch , & harness. chain . spec )
85
85
. unwrap ( ) ,
86
86
state. fork ( ) ,
87
87
)
@@ -147,7 +147,9 @@ async fn missed_blocks_basic() {
147
147
let mut slot_in_epoch = slot % slots_per_epoch;
148
148
let mut prev_slot = Slot :: new ( idx - 1 ) ;
149
149
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 ( ) ;
151
153
let mut missed_block_proposer = validator_indexes[ slot_in_epoch. as_usize ( ) ] ;
152
154
let mut proposer_shuffling_decision_root = _state
153
155
. proposer_shuffling_decision_root ( duplicate_block_root)
@@ -219,7 +221,9 @@ async fn missed_blocks_basic() {
219
221
prev_slot = Slot :: new ( idx - 1 ) ;
220
222
slot_in_epoch = slot % slots_per_epoch;
221
223
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 ( ) ;
223
227
missed_block_proposer = validator_indexes[ slot_in_epoch. as_usize ( ) ] ;
224
228
225
229
let beacon_proposer_cache = harness2
@@ -317,7 +321,9 @@ async fn missed_blocks_basic() {
317
321
slot_in_epoch = slot % slots_per_epoch;
318
322
prev_slot = Slot :: new ( idx - 1 ) ;
319
323
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 ( ) ;
321
327
missed_block_proposer = validator_indexes[ slot_in_epoch. as_usize ( ) ] ;
322
328
proposer_shuffling_decision_root = _state3
323
329
. proposer_shuffling_decision_root_at_epoch ( epoch, duplicate_block_root)
0 commit comments