We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8f282 commit f3854c7Copy full SHA for f3854c7
staticaddr/withdraw/manager.go
@@ -330,6 +330,14 @@ func (m *Manager) WithdrawDeposits(ctx context.Context,
330
return "", "", ErrWithdrawingMixedDeposits
331
}
332
333
+ // Ensure that all previously withdrawn deposits reference their
334
+ // finalized withdrawal tx.
335
+ for _, d := range deposits {
336
+ if d.FinalizedWithdrawalTx == nil {
337
+ return "", "", ErrMissingPreviousWithdrawn
338
+ }
339
340
+
341
// If republishing of an existing withdrawal is requested we
342
// ensure that all deposits remain clustered in the context of
343
// the same withdrawal tx. We do this by checking that they have
0 commit comments