From 1f615d4926e898f6ec3629021feecb20e029d477 Mon Sep 17 00:00:00 2001 From: bruwbird Date: Wed, 26 Jun 2024 09:23:46 +0900 Subject: [PATCH] swap: add missing Event_OnTimeout transition 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. --- swap/swap_out_sender.go | 1 + 1 file changed, 1 insertion(+) diff --git a/swap/swap_out_sender.go b/swap/swap_out_sender.go index 8a292b82..0cd43455 100644 --- a/swap/swap_out_sender.go +++ b/swap/swap_out_sender.go @@ -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: {