Skip to content

Commit 0ff33c8

Browse files
rustyrussellcdecker
authored andcommitted
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 7cbff8a commit 0ff33c8

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
@@ -895,7 +895,7 @@ static struct feature_set *default_features(const tal_t *ctx)
895895
static const u32 features[] = {
896896
COMPULSORY_FEATURE(OPT_DATA_LOSS_PROTECT),
897897
OPTIONAL_FEATURE(OPT_UPFRONT_SHUTDOWN_SCRIPT),
898-
COMPULSORY_FEATURE(OPT_GOSSIP_QUERIES),
898+
OPTIONAL_FEATURE(OPT_GOSSIP_QUERIES),
899899
COMPULSORY_FEATURE(OPT_VAR_ONION),
900900
COMPULSORY_FEATURE(OPT_PAYMENT_SECRET),
901901
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)