Skip to content

Commit f7eacb7

Browse files
committed
lightningd: revert f450dfe to allow non-gossip_query nodes.
LDK doesn't set this feature if they don't have any useful gossip (mobile nodes) and it was agreed at the spec meeting that we should repurpose this feature to mean "I don't have any useful gossip". Signed-off-by: Rusty Russell <[email protected]>
1 parent 22b713d commit f7eacb7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lightningd/lightningd.c

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

tests/test_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2263,7 +2263,7 @@ def test_list_features_only(node_factory):
22632263
'--list-features-only']).decode('utf-8').splitlines()
22642264
expected = ['option_data_loss_protect/even',
22652265
'option_upfront_shutdown_script/odd',
2266-
'option_gossip_queries/even',
2266+
'option_gossip_queries/odd',
22672267
'option_var_onion_optin/even',
22682268
'option_gossip_queries_ex/odd',
22692269
'option_static_remotekey/even',

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, 6, 8, 11, 12, 14, 17, 19, 25, 27, 45, 47, 51]
39+
features = [0, 5, 7, 8, 11, 12, 14, 17, 19, 25, 27, 45, 47, 51]
4040
if EXPERIMENTAL_DUAL_FUND:
4141
# option_dual_fund
4242
features += [29]
@@ -53,7 +53,7 @@ def expected_peer_features(extra=[]):
5353
# features for the 'node' and the 'peer' feature sets
5454
def expected_node_features(extra=[]):
5555
"""Return the expected node features hexstring for this configuration"""
56-
features = [0, 5, 6, 8, 11, 12, 14, 17, 19, 25, 27, 45, 47, 51, 55]
56+
features = [0, 5, 7, 8, 11, 12, 14, 17, 19, 25, 27, 45, 47, 51, 55]
5757
if EXPERIMENTAL_DUAL_FUND:
5858
# option_dual_fund
5959
features += [29]

0 commit comments

Comments
 (0)