mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 13:28:01 -05:00
Eip6110 queue deposit requests (#14430)
* wip * updating types and wip on functions * renaming to MAX_PENDING_DEPOSITS_PER_EPOCH * fixing linting and conversions * adding queue deposit changes * fixing test and cloning * removing unneeded test based on update * gaz * wip apply pending deposit * fixing replay test and adding apply pending deposit * fixing setters test * updating transition test * changelog * updating pending deposits * fixing ProcessPendingDeposit unit tests * gaz * fixing cyclic dependencies * fix visiblity * missed adding the right signature verification * adding point to infinity topup test * adding apply pending deposit test * making changes based on eip6110 changes * fixing ineffassign * gaz * adding batched verifications sigs * fixing broken type * fixing proto * updated consensus spec tests and fixed consensus bug tests * testing readability improvement by avoiding ApplyPendingDeposit * removing the boolean from apply pending deposit * improve naming * review comments and fixing a small bug using wrong variable * fixing tests and skipping a test * adding some test skips * fixing bugs terence found * adding test for batchProcessNewPendingDeposits * gaz * adding churn test * updating spec tests to alpha.8 * adding pr to changelog * addressing terence's comments * Update beacon-chain/core/electra/validator.go Co-authored-by: terence <terence@prysmaticlabs.com> * adding tests for batch verify and rename some variables * skipping tests , add them back in later * skipping one more test --------- Co-authored-by: terence <terence@prysmaticlabs.com>
This commit is contained in:
@@ -1476,12 +1476,15 @@ func DepositSnapshotFromConsensus(ds *eth.DepositSnapshot) *DepositSnapshot {
|
||||
}
|
||||
}
|
||||
|
||||
func PendingBalanceDepositsFromConsensus(ds []*eth.PendingBalanceDeposit) []*PendingBalanceDeposit {
|
||||
deposits := make([]*PendingBalanceDeposit, len(ds))
|
||||
func PendingDepositsFromConsensus(ds []*eth.PendingDeposit) []*PendingDeposit {
|
||||
deposits := make([]*PendingDeposit, len(ds))
|
||||
for i, d := range ds {
|
||||
deposits[i] = &PendingBalanceDeposit{
|
||||
Index: fmt.Sprintf("%d", d.Index),
|
||||
Amount: fmt.Sprintf("%d", d.Amount),
|
||||
deposits[i] = &PendingDeposit{
|
||||
Pubkey: hexutil.Encode(d.PublicKey),
|
||||
WithdrawalCredentials: hexutil.Encode(d.WithdrawalCredentials),
|
||||
Amount: fmt.Sprintf("%d", d.Amount),
|
||||
Signature: hexutil.Encode(d.Signature),
|
||||
Slot: fmt.Sprintf("%d", d.Slot),
|
||||
}
|
||||
}
|
||||
return deposits
|
||||
|
||||
Reference in New Issue
Block a user