Reduce reward by SLOTS_PER_EPOCH

This commit is contained in:
vbuterin 2020-11-13 10:21:30 +08:00 committed by GitHub
parent 9e3690ad17
commit 620b812c2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ def process_light_client_signature(state: BeaconState, block_body: BeaconBlockBo
total_reward = Gwei(0)
active_validator_count = len(get_active_validator_indices(beacon_state, get_current_epoch(state)))
for participant in participants:
reward = get_base_reward(state, participant) * active_validator_count // len(committee)
reward = get_base_reward(state, participant) * active_validator_count // len(committee) // SLOTS_PER_EPOCH
increase_balance(state, participant, reward)
total_reward += reward