From ee360df689af6bf4ec3edad4a45d0bb2c2dd07d2 Mon Sep 17 00:00:00 2001 From: ericsson Date: Sat, 24 Apr 2021 00:12:28 +0300 Subject: [PATCH] missed `body_summary` attribute when accessing`ShardBlobBodySummary.beacon_block_root` --- specs/sharding/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index 3cd262ed6..c1fee19bd 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -559,7 +559,7 @@ def process_shard_header(state: BeaconState, assert header.shard < get_active_shard_count(state, header_epoch) # Verify that the block root matches, # to ensure the header will only be included in this specific Beacon Chain sub-tree. - assert header.beacon_block_root == get_block_root_at_slot(state, header.slot - 1) + assert header.body_summary.beacon_block_root == get_block_root_at_slot(state, header.slot - 1) # Verify proposer assert header.proposer_index == get_shard_proposer_index(state, header.slot, header.shard) # Verify signature