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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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