@@ -199,6 +199,9 @@ abstract class ChannelIntegrationSpec extends IntegrationSpec {
199199 // and we wait for the channel to close
200200 awaitCond(stateListenerC.expectMsgType[ChannelStateChanged ](max = 60 seconds).currentState == CLOSED , max = 60 seconds)
201201 awaitCond(stateListenerF.expectMsgType[ChannelStateChanged ](max = 60 seconds).currentState == CLOSED , max = 60 seconds)
202+
203+ // generate enough blocks so the router will know the channel has been closed and not spliced
204+ generateBlocks(12 )
202205 awaitAnnouncements(1 )
203206 }
204207
@@ -240,6 +243,9 @@ abstract class ChannelIntegrationSpec extends IntegrationSpec {
240243 // and we wait for the channel to close
241244 awaitCond(stateListenerC.expectMsgType[ChannelStateChanged ](max = 60 seconds).currentState == CLOSED , max = 60 seconds)
242245 awaitCond(stateListenerF.expectMsgType[ChannelStateChanged ](max = 60 seconds).currentState == CLOSED , max = 60 seconds)
246+
247+ // generate enough blocks so the router will know the channel has been closed and not spliced
248+ generateBlocks(12 )
243249 awaitAnnouncements(1 )
244250 }
245251
@@ -293,6 +299,9 @@ abstract class ChannelIntegrationSpec extends IntegrationSpec {
293299 // and we wait for the channel to close
294300 awaitCond(stateListenerC.expectMsgType[ChannelStateChanged ](max = 60 seconds).currentState == CLOSED , max = 60 seconds)
295301 awaitCond(stateListenerF.expectMsgType[ChannelStateChanged ](max = 60 seconds).currentState == CLOSED , max = 60 seconds)
302+
303+ // generate enough blocks so the router will know the channel has been closed and not spliced
304+ generateBlocks(12 )
296305 awaitAnnouncements(1 )
297306 }
298307
@@ -349,6 +358,9 @@ abstract class ChannelIntegrationSpec extends IntegrationSpec {
349358 // and we wait for the channel to close
350359 awaitCond(stateListenerC.expectMsgType[ChannelStateChanged ](max = 60 seconds).currentState == CLOSED , max = 60 seconds)
351360 awaitCond(stateListenerF.expectMsgType[ChannelStateChanged ](max = 60 seconds).currentState == CLOSED , max = 60 seconds)
361+
362+ // generate enough blocks so the router will know the channel has been closed and not spliced
363+ generateBlocks(12 )
352364 awaitAnnouncements(1 )
353365 }
354366
@@ -594,6 +606,8 @@ class StandardChannelIntegrationSpec extends ChannelIntegrationSpec {
594606 val closingTx = sender.expectMsgType[Transaction ]
595607 assert(closingTx.txOut.map(_.publicKeyScript).toSet == Set (finalPubKeyScriptC, finalPubKeyScriptF))
596608
609+ // generate enough blocks so the router will know the channel has been closed and not spliced
610+ generateBlocks(12 )
597611 awaitAnnouncements(1 )
598612 }
599613
@@ -645,6 +659,9 @@ class StandardChannelIntegrationSpec extends ChannelIntegrationSpec {
645659 generateBlocks(2 )
646660 // and we wait for C's channel to close
647661 awaitCond(stateListenerC.expectMsgType[ChannelStateChanged ](max = 60 seconds).currentState == CLOSED , max = 60 seconds)
662+
663+ // generate enough blocks so the router will know the channel has been closed and not spliced
664+ generateBlocks(12 )
648665 awaitAnnouncements(1 )
649666 }
650667
@@ -768,6 +785,9 @@ abstract class AnchorChannelIntegrationSpec extends ChannelIntegrationSpec {
768785 // get the claim-remote-output confirmed, then the channel can go to the CLOSED state
769786 generateBlocks(2 )
770787 awaitCond(stateListener.expectMsgType[ChannelStateChanged ](max = 60 seconds).currentState == CLOSED , max = 60 seconds)
788+
789+ // generate enough blocks so the router will know the channel has been closed and not spliced
790+ generateBlocks(12 )
771791 awaitAnnouncements(1 )
772792 }
773793
@@ -797,6 +817,9 @@ abstract class AnchorChannelIntegrationSpec extends ChannelIntegrationSpec {
797817 generateBlocks(2 )
798818 // and we wait for C's channel to close
799819 awaitCond(stateListenerC.expectMsgType[ChannelStateChanged ](max = 60 seconds).currentState == CLOSED , max = 60 seconds)
820+
821+ // generate enough blocks so the router will know the channel has been closed and not spliced
822+ generateBlocks(12 )
800823 awaitAnnouncements(1 )
801824 }
802825
0 commit comments