mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-17 21:16:52 +00:00
Apply suggestions from code review
Co-Authored-By: Carl Beekhuizen <carl@ethereum.org>
This commit is contained in:
parent
2ae7323183
commit
6560bc42d2
@ -136,8 +136,8 @@ def process_shard_receipt(state: BeaconState, receipt_proof: ShardReceiptProof):
|
|||||||
first_slot_in_last_crosslink = state.current_crosslinks[receipt_proof.shard].start_epoch * SLOTS_PER_EPOCH
|
first_slot_in_last_crosslink = state.current_crosslinks[receipt_proof.shard].start_epoch * SLOTS_PER_EPOCH
|
||||||
gindex = concat_generalized_indices(
|
gindex = concat_generalized_indices(
|
||||||
get_generalized_index_of_crosslink_header(0),
|
get_generalized_index_of_crosslink_header(0),
|
||||||
get_generalized_index(ShardBlockHeader, 'state_root')
|
get_generalized_index(ShardBlockHeader, 'state_root'),
|
||||||
compute_historical_state_generalized_index(receipt_slot, first_slot_in_last_crosslink)
|
compute_historical_state_generalized_index(receipt_slot, first_slot_in_last_crosslink),
|
||||||
get_generalized_index(ShardState, 'receipt_root')
|
get_generalized_index(ShardState, 'receipt_root')
|
||||||
)
|
)
|
||||||
assert verify_merkle_proof(
|
assert verify_merkle_proof(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user