Skip to content

Commit f450dfe

Browse files
committed
lightningd: make option_gossip_queries compulsory.
As suggested in lightning/bolts#1092. Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: Protocol: `option_gossip_queries` is now required (advertized by all but 11 nodes)
1 parent 88a2146 commit f450dfe

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lightningd/lightningd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ static struct feature_set *default_features(const tal_t *ctx)
889889
static const u32 features[] = {
890890
COMPULSORY_FEATURE(OPT_DATA_LOSS_PROTECT),
891891
OPTIONAL_FEATURE(OPT_UPFRONT_SHUTDOWN_SCRIPT),
892-
OPTIONAL_FEATURE(OPT_GOSSIP_QUERIES),
892+
COMPULSORY_FEATURE(OPT_GOSSIP_QUERIES),
893893
COMPULSORY_FEATURE(OPT_VAR_ONION),
894894
COMPULSORY_FEATURE(OPT_PAYMENT_SECRET),
895895
OPTIONAL_FEATURE(OPT_BASIC_MPP),

tests/test_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3579,9 +3579,9 @@ def test_nonstatic_channel(node_factory, bitcoind):
35793579
"""Smoke test for a channel without option_static_remotekey"""
35803580
l1, l2 = node_factory.line_graph(2,
35813581
opts=[{},
3582-
# needs at least 1 and 15 to connect
3582+
# needs at least 1, 7 and 15 to connect
35833583
# (and 9 is a dependent)
3584-
{'dev-force-features': '1,9,15////////'}])
3584+
{'dev-force-features': '1,7,9,15////////'}])
35853585
chan = only_one(l1.rpc.listpeerchannels()['channels'])
35863586
assert 'option_static_remotekey' not in chan['features']
35873587
assert 'option_anchor' not in chan['features']

tests/test_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ def test_list_features_only(node_factory):
22452245
'--list-features-only']).decode('utf-8').splitlines()
22462246
expected = ['option_data_loss_protect/even',
22472247
'option_upfront_shutdown_script/odd',
2248-
'option_gossip_queries/odd',
2248+
'option_gossip_queries/even',
22492249
'option_var_onion_optin/even',
22502250
'option_gossip_queries_ex/odd',
22512251
'option_static_remotekey/odd',

tests/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def hex_bits(features):
3636

3737
def expected_peer_features(extra=[]):
3838
"""Return the expected peer features hexstring for this configuration"""
39-
features = [0, 5, 7, 8, 11, 13, 14, 17, 19, 25, 27, 45, 47, 51]
39+
features = [0, 5, 6, 8, 11, 13, 14, 17, 19, 25, 27, 45, 47, 51]
4040
if EXPERIMENTAL_DUAL_FUND:
4141
# option_dual_fund
4242
features += [29]
@@ -50,7 +50,7 @@ def expected_peer_features(extra=[]):
5050
# features for the 'node' and the 'peer' feature sets
5151
def expected_node_features(extra=[]):
5252
"""Return the expected node features hexstring for this configuration"""
53-
features = [0, 5, 7, 8, 11, 13, 14, 17, 19, 25, 27, 45, 47, 51, 55]
53+
features = [0, 5, 6, 8, 11, 13, 14, 17, 19, 25, 27, 45, 47, 51, 55]
5454
if EXPERIMENTAL_DUAL_FUND:
5555
# option_dual_fund
5656
features += [29]

0 commit comments

Comments
 (0)