Replace unspecified DOMAIN_SHARD_HEADER const with DOMAIN_SHARD_PROPOSER

This commit is contained in:
Anton Nashatyrev 2021-04-30 14:14:09 +03:00
parent 86d8a10495
commit 36fd9195f3
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ def process_shard_header(state: BeaconState,
# Verify proposer
assert header.proposer_index == get_shard_proposer_index(state, header.slot, header.shard)
# Verify signature
signing_root = compute_signing_root(header, get_domain(state, DOMAIN_SHARD_HEADER))
signing_root = compute_signing_root(header, get_domain(state, DOMAIN_SHARD_PROPOSER))
assert bls.Verify(state.validators[header.proposer_index].pubkey, signing_root, signed_header.signature)
# Verify the length by verifying the degree.