Skip to content

Commit c051f4f

Browse files
committed
Fix validator fields in get_validator_from_deposit
1 parent 6bbe3ae commit c051f4f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

specs/electra/beacon-chain.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ def notify_new_payload(self: ExecutionEngine,
994994
parent_beacon_block_root: Root,
995995
execution_requests_list: list[bytes]) -> bool:
996996
"""
997-
Return ``True`` if and only if ``execution_payload`` and ``execution_requests``
997+
Return ``True`` if and only if ``execution_payload`` and ``execution_requests``
998998
are valid with respect to ``self.execution_state``.
999999
"""
10001000
...
@@ -1290,11 +1290,12 @@ def get_validator_from_deposit(pubkey: BLSPubkey, withdrawal_credentials: Bytes3
12901290
validator = Validator(
12911291
pubkey=pubkey,
12921292
withdrawal_credentials=withdrawal_credentials,
1293+
effective_balance=Gwei(0),
1294+
slashed=False,
12931295
activation_eligibility_epoch=FAR_FUTURE_EPOCH,
12941296
activation_epoch=FAR_FUTURE_EPOCH,
12951297
exit_epoch=FAR_FUTURE_EPOCH,
12961298
withdrawable_epoch=FAR_FUTURE_EPOCH,
1297-
effective_balance=Gwei(0),
12981299
)
12991300

13001301
# [Modified in Electra:EIP7251]

specs/phase0/beacon-chain.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,11 +1854,12 @@ def get_validator_from_deposit(pubkey: BLSPubkey, withdrawal_credentials: Bytes3
18541854
return Validator(
18551855
pubkey=pubkey,
18561856
withdrawal_credentials=withdrawal_credentials,
1857+
effective_balance=effective_balance,
1858+
slashed=False,
18571859
activation_eligibility_epoch=FAR_FUTURE_EPOCH,
18581860
activation_epoch=FAR_FUTURE_EPOCH,
18591861
exit_epoch=FAR_FUTURE_EPOCH,
18601862
withdrawable_epoch=FAR_FUTURE_EPOCH,
1861-
effective_balance=effective_balance,
18621863
)
18631864
```
18641865

0 commit comments

Comments
 (0)