channeld: allow stfu based on peer features, not EXPERIMENTAL_FEATURES.

Changelog-EXPERIMENTAL: Config: `--experimental-quiesce` enables queiescence, for testing.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-05-22 10:21:44 +09:30
parent e51460be28
commit 6c23349c72
17 changed files with 45 additions and 55 deletions

View File

@@ -3943,10 +3943,9 @@ def test_upgrade_statickey_fail(node_factory, executor, bitcoind):
assert 'option_static_remotekey' in only_one(l2.rpc.listpeerchannels()['channels'])['features']
@unittest.skipIf(not EXPERIMENTAL_FEATURES, "quiescence is experimental")
@pytest.mark.developer("quiescence triggering is dev only")
def test_quiescence(node_factory, executor):
l1, l2 = node_factory.line_graph(2)
l1, l2 = node_factory.line_graph(2, opts={'experimental-quiesce': None})
# Works fine.
l1.pay(l2, 1000)