mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-26 09:15:17 +00:00
Re-added some penalization in case of failure to finalize
This commit is contained in:
parent
d1d1b73fb1
commit
38a5c3640b
@ -1936,6 +1936,9 @@ def get_justification_and_finalization_deltas(state: BeaconState) -> Tuple[List[
|
||||
if index in get_attesting_indices(state, state.previous_epoch_attestations):
|
||||
proposer_index = get_beacon_proposer_index(state, inclusion_slot(state, index))
|
||||
rewards[proposer_index] += get_base_reward(state, index) // ATTESTATION_INCLUSION_REWARD_QUOTIENT
|
||||
# Take away max rewards if we're not finalizing
|
||||
if epochs_since_finality > 4:
|
||||
penalties[index] += get_base_reward(state, index) * 4
|
||||
return [rewards, penalties]
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user