From d606398842f76160017a36c1f7a1a589afa8770d Mon Sep 17 00:00:00 2001 From: pm47 Date: Mon, 23 May 2022 15:06:47 +0200 Subject: [PATCH] increase closed timeout from 10s to 1min This gives more time to rollback the funding tx in case where we moved from `WAIT_FOR_FUNDING_INTERNAL`->`CLOSED`. We could do it differently, with an additional step, or by only sending the "shutdown" symbol after we receive the wallet response for this specific transition, but it would be more complicated. --- .../src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala b/eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala index c63762c96c..b3baf3d8a6 100644 --- a/eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala +++ b/eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala @@ -1586,7 +1586,7 @@ class Channel(val nodeParams: NodeParams, val wallet: OnChainChannelFunder, val if (nextState == CLOSED) { // channel is closed, scheduling this actor for self destruction - context.system.scheduler.scheduleOnce(10 seconds, self, Symbol("shutdown")) + context.system.scheduler.scheduleOnce(1 minute, self, Symbol("shutdown")) } if (nextState == OFFLINE) { // we can cancel the timer, we are not expecting anything when disconnected