From c051f4f02ae0beee31fff02492beb6f13a345199 Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Fri, 11 Oct 2024 10:34:31 -0500 Subject: [PATCH] Fix validator fields in get_validator_from_deposit --- specs/electra/beacon-chain.md | 5 +++-- specs/phase0/beacon-chain.md | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/specs/electra/beacon-chain.md b/specs/electra/beacon-chain.md index 7c6d9fe1fa..94dce11a68 100644 --- a/specs/electra/beacon-chain.md +++ b/specs/electra/beacon-chain.md @@ -994,7 +994,7 @@ def notify_new_payload(self: ExecutionEngine, parent_beacon_block_root: Root, execution_requests_list: list[bytes]) -> bool: """ - Return ``True`` if and only if ``execution_payload`` and ``execution_requests`` + Return ``True`` if and only if ``execution_payload`` and ``execution_requests`` are valid with respect to ``self.execution_state``. """ ... @@ -1290,11 +1290,12 @@ def get_validator_from_deposit(pubkey: BLSPubkey, withdrawal_credentials: Bytes3 validator = Validator( pubkey=pubkey, withdrawal_credentials=withdrawal_credentials, + effective_balance=Gwei(0), + slashed=False, activation_eligibility_epoch=FAR_FUTURE_EPOCH, activation_epoch=FAR_FUTURE_EPOCH, exit_epoch=FAR_FUTURE_EPOCH, withdrawable_epoch=FAR_FUTURE_EPOCH, - effective_balance=Gwei(0), ) # [Modified in Electra:EIP7251] diff --git a/specs/phase0/beacon-chain.md b/specs/phase0/beacon-chain.md index 9d5f8446a0..3d860d4a3e 100644 --- a/specs/phase0/beacon-chain.md +++ b/specs/phase0/beacon-chain.md @@ -1854,11 +1854,12 @@ def get_validator_from_deposit(pubkey: BLSPubkey, withdrawal_credentials: Bytes3 return Validator( pubkey=pubkey, withdrawal_credentials=withdrawal_credentials, + effective_balance=effective_balance, + slashed=False, activation_eligibility_epoch=FAR_FUTURE_EPOCH, activation_epoch=FAR_FUTURE_EPOCH, exit_epoch=FAR_FUTURE_EPOCH, withdrawable_epoch=FAR_FUTURE_EPOCH, - effective_balance=effective_balance, ) ```