Update specs/phase1/custody-game.md

Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
This commit is contained in:
dankrad
2020-06-16 15:05:12 +01:00
committed by GitHub
parent 4b8b3f2cbc
commit 4bc849bcc2

View File

@@ -373,7 +373,7 @@ def process_chunk_challenge_response(state: BeaconState,
record for record in state.custody_chunk_challenge_records
if record.challenge_index == response.challenge_index
]
assert len(matching_challenges) > 0
assert len(matching_challenges) == 1
challenge = matching_challenges[0]
# Verify chunk index
assert response.chunk_index == challenge.chunk_index