Skip to content

Commit 82e34a6

Browse files
committed
staticaddr: allow rbf'ing withdrawal transactions
1 parent 3d1ba4e commit 82e34a6

File tree

2 files changed

+219
-59
lines changed

2 files changed

+219
-59
lines changed

staticaddr/deposit/fsm.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ func (f *FSM) DepositStatesV0() fsm.States {
297297
Withdrawing: fsm.State{
298298
Transitions: fsm.Transitions{
299299
OnWithdrawn: Withdrawn,
300+
// OnWithdrawInitiated is sent if a fee bump was
301+
// requested and the withdrawal was republished.
302+
OnWithdrawInitiated: Withdrawing,
300303
// Upon recovery, we go back to the Deposited
301304
// state. The deposit by then has a withdrawal
302305
// address stamped to it which will cause it to
@@ -358,7 +361,8 @@ func (f *FSM) DepositStatesV0() fsm.States {
358361
},
359362
Withdrawn: fsm.State{
360363
Transitions: fsm.Transitions{
361-
OnExpiry: Expired,
364+
OnExpiry: Expired,
365+
OnWithdrawn: Withdrawn,
362366
},
363367
Action: f.FinalizeDepositAction,
364368
},

0 commit comments

Comments
 (0)