df: anchor outputs are on if EXP_DF

So we should treat it the same as EXPERIMENTAL_FEATURES
This commit is contained in:
niftynei
2021-05-06 14:11:11 -05:00
committed by Rusty Russell
parent 484d6bde83
commit b4e24ac8ba
4 changed files with 23 additions and 15 deletions

View File

@@ -1469,7 +1469,8 @@ def test_plugin_feature_announce(node_factory):
extra = []
if l1.config('experimental-dual-fund'):
extra.append(223)
extra.append(21) # option-anchor-outputs
extra.append(29) # option-dual-fund
# Check the featurebits we've set in the `init` message from
# feature-test.py.
@@ -1706,10 +1707,9 @@ def test_feature_set(node_factory):
l1 = node_factory.get_node(options={"plugin": plugin})
fs = l1.rpc.call('getfeatureset')
extra = [233] if l1.config('experimental-dual-fund') else []
assert fs['init'] == expected_peer_features(extra=extra)
assert fs['node'] == expected_node_features(extra=extra)
assert fs['init'] == expected_peer_features()
assert fs['node'] == expected_node_features()
assert fs['channel'] == expected_channel_features()
assert 'invoice' in fs