Skip to content

Commit e07ed7f

Browse files
committed
Address Michael's Comments
1 parent 1242923 commit e07ed7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

consensus/types/src/beacon_state.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,7 @@ impl<E: EthSpec> BeaconState<E> {
10931093
// Proposer indices are only known for the current epoch, due to the dependence on the
10941094
// effective balances of validators, which change at every epoch transition.
10951095
let epoch = slot.epoch(E::slots_per_epoch());
1096+
// TODO(EIP-7917): Explore allowing this function to be called with a slot one epoch in the future.
10961097
if epoch != self.current_epoch() {
10971098
return Err(Error::SlotOutOfBounds);
10981099
}
@@ -1116,7 +1117,7 @@ impl<E: EthSpec> BeaconState<E> {
11161117
}
11171118
}
11181119

1119-
/// Returns the beacon proposer index for each `slot` in `self.current_epoch()`.
1120+
/// Returns the beacon proposer index for each `slot` in `epoch`.
11201121
///
11211122
/// The returned `Vec` contains one proposer index for each slot in the epoch.
11221123
pub fn get_beacon_proposer_indices(

0 commit comments

Comments
 (0)