Skip to content

Commit

Permalink
fixup! splice: prevent splice going to onchaind & race prevention
Browse files Browse the repository at this point in the history
Add a regression check for Issue #6533
  • Loading branch information
ddustin committed Aug 15, 2023
1 parent 0b8fbe0 commit 6cd14d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_splicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from utils import TEST_NETWORK
import pytest
import unittest
import time


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

inv = l2.rpc.invoice(10**2, '3', 'no_3')
l1.rpc.pay(inv['bolt11'])

# Check that the splice doesn't generate a unilateral close transaction
time.sleep(5)
assert l1.db_query("SELECT count(*) as c FROM channeltxs;")[0]['c'] == 0

0 comments on commit 6cd14d4

Please sign in to comment.