specially mark EIP7044 changes

This commit is contained in:
Hsiao-Wei Wang 2023-06-07 18:40:02 +08:00
parent 5f241bb7a4
commit bab93e8d44
No known key found for this signature in database
GPG Key ID: AE3D6B174F971DE4
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ def process_voluntary_exit(state: BeaconState, signed_voluntary_exit: SignedVolu
# Verify the validator has been active long enough
assert get_current_epoch(state) >= validator.activation_epoch + SHARD_COMMITTEE_PERIOD
# Verify signature
# [Modified in Deneb]
# [Modified in Deneb:EIP7044]
domain = compute_domain(DOMAIN_VOLUNTARY_EXIT, CAPELLA_FORK_VERSION, state.genesis_validators_root)
signing_root = compute_signing_root(voluntary_exit, domain)
assert bls.Verify(validator.pubkey, signing_root, signed_voluntary_exit.signature)