@@ -297,6 +297,9 @@ func (f *FSM) DepositStatesV0() fsm.States {
297
297
Withdrawing : fsm.State {
298
298
Transitions : fsm.Transitions {
299
299
OnWithdrawn : Withdrawn ,
300
+ // OnWithdrawInitiated is sent if a fee bump was
301
+ // requested and the withdrawal was republished.
302
+ OnWithdrawInitiated : Withdrawing ,
300
303
// Upon recovery, we go back to the Deposited
301
304
// state. The deposit by then has a withdrawal
302
305
// address stamped to it which will cause it to
@@ -358,7 +361,8 @@ func (f *FSM) DepositStatesV0() fsm.States {
358
361
},
359
362
Withdrawn : fsm.State {
360
363
Transitions : fsm.Transitions {
361
- OnExpiry : Expired ,
364
+ OnExpiry : Expired ,
365
+ OnWithdrawn : Withdrawn ,
362
366
},
363
367
Action : f .FinalizeDepositAction ,
364
368
},
@@ -374,11 +378,6 @@ func (f *FSM) updateDeposit(ctx context.Context,
374
378
return
375
379
}
376
380
377
- f .Debugf ("NextState: %v, PreviousState: %v, Event: %v" ,
378
- notification .NextState , notification .PreviousState ,
379
- notification .Event ,
380
- )
381
-
382
381
type checkStateFunc func (state fsm.StateType ) bool
383
382
type setStateFunc func (state fsm.StateType )
384
383
checkFunc := checkStateFunc (f .deposit .IsInState )
@@ -393,6 +392,11 @@ func (f *FSM) updateDeposit(ctx context.Context,
393
392
return
394
393
}
395
394
395
+ f .Debugf ("NextState: %v, PreviousState: %v, Event: %v" ,
396
+ notification .NextState , notification .PreviousState ,
397
+ notification .Event ,
398
+ )
399
+
396
400
err := f .cfg .Store .UpdateDeposit (ctx , f .deposit )
397
401
if err != nil {
398
402
f .Errorf ("unable to update deposit: %w" , err )
0 commit comments