Compare commits

...

2 Commits

Author SHA1 Message Date
terence tsao
6a99cf9d7a Update tt_fix_pending_deposits.md 2025-01-27 10:07:13 -08:00
terence tsao
b403debc2c Fix batch process new pending deposits by update cache after adding validator to registry 2025-01-27 10:07:13 -08:00
2 changed files with 4 additions and 3 deletions

View File

@@ -390,9 +390,6 @@ func batchProcessNewPendingDeposits(ctx context.Context, state state.BeaconState
// Process each deposit individually
for _, pendingDeposit := range pendingDeposits {
_, found := pubKeyMap[bytesutil.ToBytes48(pendingDeposit.PublicKey)]
if !found {
pubKeyMap[bytesutil.ToBytes48(pendingDeposit.PublicKey)] = struct{}{}
}
validSignature := allSignaturesVerified
// If batch verification failed, check the individual deposit signature
@@ -420,6 +417,7 @@ func batchProcessNewPendingDeposits(ctx context.Context, state state.BeaconState
if err != nil {
return errors.Wrap(err, "failed to add validator to registry")
}
pubKeyMap[bytesutil.ToBytes48(pendingDeposit.PublicKey)] = struct{}{}
}
}
}

View File

@@ -0,0 +1,3 @@
### Fixed
- Fix batch process new pending deposits by update cache after adding validator to registry