From 0c62d8d3aab72e6990746684d386935863d478ce Mon Sep 17 00:00:00 2001 From: t-bast Date: Mon, 23 Sep 2024 07:36:16 +0200 Subject: [PATCH] fixup! Implement on-the-fly funding --- eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala b/eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala index bd02ae6cc3..19af4709c2 100644 --- a/eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala +++ b/eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala @@ -520,8 +520,7 @@ class Peer(val nodeParams: NodeParams, } pendingOnTheFlyFunding = pendingOnTheFlyFunding.removedAll(expired.keys) d match { - case Peer.Nothing => stay() - case d if d.channels.isEmpty && pendingOnTheFlyFunding.isEmpty => stopPeer() + case d: DisconnectedData if d.channels.isEmpty && pendingOnTheFlyFunding.isEmpty => stopPeer() case _ => stay() }