From 620b812c2e5853bb3b737e736d8266eb522e2130 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Fri, 13 Nov 2020 10:21:30 +0800 Subject: [PATCH] Reduce reward by SLOTS_PER_EPOCH --- specs/lightclient/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/lightclient/beacon-chain.md b/specs/lightclient/beacon-chain.md index 77f0b8e0b..fcf063c04 100644 --- a/specs/lightclient/beacon-chain.md +++ b/specs/lightclient/beacon-chain.md @@ -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