Skip to content

Commit fe85de2

Browse files
committed
fixup! channeld: Code to implement splicing
Text fixes: * Only test splicing if its enabled * Handle cases where splicing isn’t enabled correctly
1 parent 88e9203 commit fe85de2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/test_misc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,9 +2174,11 @@ def test_list_features_only(node_factory):
21742174
'option_shutdown_anysegwit/odd',
21752175
'option_channel_type/odd',
21762176
'option_scid_alias/odd',
2177-
'option_zeroconf/odd',
2178-
'option_splice/odd',
2179-
'supports_open_accept_channel_type']
2177+
'option_zeroconf/odd']
2178+
if env('EXPERIMENTAL_SPLICING') == '1':
2179+
expected += ['option_splice/odd']
2180+
expected += ['supports_open_accept_channel_type']
2181+
21802182
assert features == expected
21812183

21822184

tests/test_splicing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
from fixtures import * # noqa: F401,F403
2+
from pyln.testing.utils import env
23
import pytest
4+
import unittest
35

46

7+
@unittest.skipIf(env('EXPERIMENTAL_SPLICING') != '1', "Need experimental splicing turned on")
58
@pytest.mark.openchannel('v2')
69
def test_splice(node_factory, bitcoind):
710
l1, l2 = node_factory.line_graph(2, fundamount=1000000, wait_for_announce=True)

0 commit comments

Comments
 (0)