Skip to content

Commit 7d54716

Browse files
committed
fixup! splice: prevent splice going to onchaind & race prevention
Add a regression check for Issue ElementsProject#6533
1 parent 27427f5 commit 7d54716

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_splicing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from utils import TEST_NETWORK
33
import pytest
44
import unittest
5+
import time
56

67

78
@pytest.mark.openchannel('v1')
@@ -34,3 +35,7 @@ def test_splice(node_factory, bitcoind):
3435

3536
inv = l2.rpc.invoice(10**2, '3', 'no_3')
3637
l1.rpc.pay(inv['bolt11'])
38+
39+
# Check that the splice doesn't generate a unilateral close transaction
40+
time.sleep(5)
41+
assert l1.db_query("SELECT count(*) as c FROM channeltxs;")[0]['c'] == 0

0 commit comments

Comments
 (0)