Merge pull request #1946 from ericsson49/fix_is_valid_fraud_proof2

Fix `is_valid_fraud_proof` which tries to access `message` field of a `ShardBlock` instance
This commit is contained in:
Danny Ryan 2020-07-02 09:58:14 -06:00 committed by GitHub
commit c3350f4477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ def is_valid_fraud_proof(beacon_state: BeaconState,
else: else:
shard_state = transition.shard_states[offset_index - 1] # Not doing the actual state updates here. shard_state = transition.shard_states[offset_index - 1] # Not doing the actual state updates here.
process_shard_block(shard_state, block.message) process_shard_block(shard_state, block)
if shard_state != transition.shard_states[offset_index]: if shard_state != transition.shard_states[offset_index]:
return True return True