-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed as not planned
Description
The rewards
tests use a BeaconState
in epoch 0, which isn't compatible with implementations that avoid processing rewards in the genesis epoch.
The process_rewards_and_penalties
function does not compute rewards in epoch 0:
def process_rewards_and_penalties(state: BeaconState) -> None:
# No rewards are applied at the end of `GENESIS_EPOCH` because rewards are for work done in the previous epoch
if get_current_epoch(state) == GENESIS_EPOCH:
return
...
In Lighthouse, while moving to single-pass epoch processing we no longer have code for computing individual deltas, and extract the deltas (actually the sum of all deltas) from our single-pass implementation. Single-pass epoch processing (correctly) skips rewards calculations in epoch 0.
Metadata
Metadata
Assignees
Labels
No labels