Skip to content

Commit

Permalink
swap: add missing Event_OnTimeout transition
Browse files Browse the repository at this point in the history
The Event_OnRetry is designed to execute 20 retries and stop
the process if it still fails.

This patch adds the missing Event_OnTimeout transition to
transit to coop close if the lwk is not restarted.
  • Loading branch information
YusukeShimizu committed Jun 27, 2024
1 parent c4e9145 commit 22f4e66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions swap/swap_out_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ func getSwapOutSenderStates() States {
Events: Events{
Event_ActionSucceeded: State_ClaimedPreimage,
Event_OnRetry: State_SwapOutSender_ClaimSwap,
Event_OnTimeout: State_SwapOutSender_SendPrivkey,
},
},
State_SwapOutSender_SendPrivkey: {
Expand Down

0 comments on commit 22f4e66

Please sign in to comment.