-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 2 bugs in Electra deposit processing
All those fields recently added to CombinedDeposit still weren't enough. There seems to have been a similar unobserved bug involving PendingDeposit.withdrawal_credentials. A top-up deposit may contain withdrawal credentials different from the original ones. apply_deposits in Electra now works around some of the logic in validate_deposits. validate_deposits does 2 things: - It verifies signatures in an optimized way. - It combines deposits with the same pubkey to minimize BeaconState updates. The former is still useful in Electra, but the latter is undesirable. It may be a good idea to refactor validate_deposits to only do the former.
- Loading branch information
1 parent
ca1f0c0
commit bd507cb
Showing
5 changed files
with
102 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters