From d41b6a5775b42fb56588acb2cfda77c2ba34cafe Mon Sep 17 00:00:00 2001 From: dankrad Date: Fri, 12 Jun 2020 11:18:07 +0100 Subject: [PATCH] Update specs/phase1/custody-game.md Co-authored-by: Hsiao-Wei Wang --- specs/phase1/custody-game.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/phase1/custody-game.md b/specs/phase1/custody-game.md index 84780846b..24d64b0ee 100644 --- a/specs/phase1/custody-game.md +++ b/specs/phase1/custody-game.md @@ -380,8 +380,8 @@ def process_chunk_challenge_response(state: BeaconState, root=challenge.data_root, ) # Clear the challenge - records = state.custody_chunk_challenge_records - records[records.index(challenge)] = CustodyChunkChallengeRecord() + index_in_records = state.custody_chunk_challenge_records.index(challenge) + state.custody_chunk_challenge_records[index_in_records] = CustodyChunkChallengeRecord() # Reward the proposer proposer_index = get_beacon_proposer_index(state) increase_balance(state, proposer_index, Gwei(get_base_reward(state, proposer_index) // MINOR_REWARD_QUOTIENT))