Skip to content

Commit da3b23a

Browse files
authored
Merge pull request #3978 from jtraglia/fix-new-validator-order
Fix validator fields in `get_validator_from_deposit`
2 parents 7922b62 + c051f4f commit da3b23a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

specs/electra/beacon-chain.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)