Merge pull request #1922 from terencechain/patch-105

Remove shard check in `verify_shard_block_message`
This commit is contained in:
Danny Ryan 2020-06-22 12:05:32 -06:00 committed by GitHub
commit 05dc8fe9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -42,8 +42,6 @@ def verify_shard_block_message(beacon_parent_state: BeaconState,
next_slot = Slot(block.slot + 1)
offset_slots = compute_offset_slots(get_latest_slot_for_shard(beacon_parent_state, shard), next_slot)
assert block.slot in offset_slots
# Check `shard` field
assert block.shard == shard
# Check `proposer_index` field
assert block.proposer_index == get_shard_proposer_index(beacon_parent_state, block.slot, shard)
# Check `body` field