Skip to content

Commit 6377f98

Browse files
authored
Merge pull request #8615 from ProofOfKeags/bugfix/revert-compulsory-gossip-queries
Revert "feature: make gossip queries compulsory"
2 parents e509657 + 939e3cc commit 6377f98

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

docs/release-notes/release-notes-0.18.0.md

+5
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,11 @@ bitcoin peers' feefilter values into account](https://github.com/lightningnetwor
392392
and makes TLV Onions, Static Remote Keys, Gossip Queries, compulsory features
393393
for LND's peers. Data Loss Protection has been compulsory for years.
394394

395+
* [Don't Require Gossip Queries](https://github.com/lightningnetwork/lnd/pull/8615)
396+
This change undoes a portion of what was introduced in #8275 due to a subsequent
397+
[spec change](https://github.com/lightning/bolts/pull/1092/commits/e0ee59f3c92b7c98be8dfc47b7db358b45baf9de)
398+
that meant we shouldn't require it.
399+
395400
## Testing
396401

397402
* Added fuzz tests for [onion

feature/default_sets.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var defaultSetDesc = setDesc{
1414
SetInit: {}, // I
1515
SetNodeAnn: {}, // N
1616
},
17-
lnwire.GossipQueriesRequired: {
17+
lnwire.GossipQueriesOptional: {
1818
SetInit: {}, // I
1919
SetNodeAnn: {}, // N
2020
},

feature/manager_internal_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func TestUpdateFeatureSets(t *testing.T) {
151151
SetInit: {}, // I
152152
SetNodeAnn: {}, // N
153153
},
154-
lnwire.GossipQueriesRequired: {
154+
lnwire.GossipQueriesOptional: {
155155
SetNodeAnn: {}, // N
156156
},
157157
}
@@ -201,7 +201,7 @@ func TestUpdateFeatureSets(t *testing.T) {
201201
),
202202
SetNodeAnn: lnwire.NewRawFeatureVector(
203203
lnwire.DataLossProtectRequired,
204-
lnwire.GossipQueriesRequired,
204+
lnwire.GossipQueriesOptional,
205205
lnwire.FeatureBit(1000),
206206
),
207207
},
@@ -222,7 +222,7 @@ func TestUpdateFeatureSets(t *testing.T) {
222222
),
223223
SetNodeAnn: lnwire.NewRawFeatureVector(
224224
lnwire.DataLossProtectRequired,
225-
lnwire.GossipQueriesRequired,
225+
lnwire.GossipQueriesOptional,
226226
),
227227
},
228228
config: Config{
@@ -242,7 +242,7 @@ func TestUpdateFeatureSets(t *testing.T) {
242242
),
243243
SetNodeAnn: lnwire.NewRawFeatureVector(
244244
lnwire.DataLossProtectRequired,
245-
lnwire.GossipQueriesRequired,
245+
lnwire.GossipQueriesOptional,
246246
lnwire.FeatureBit(500),
247247
),
248248
SetInvoice: lnwire.NewRawFeatureVector(

peer/brontide_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,6 @@ func TestPeerCustomMessage(t *testing.T) {
11381138
initReplyMsg := lnwire.NewInitMessage(
11391139
lnwire.NewRawFeatureVector(
11401140
lnwire.DataLossProtectRequired,
1141-
lnwire.GossipQueriesOptional,
11421141
),
11431142
lnwire.NewRawFeatureVector(),
11441143
)

0 commit comments

Comments
 (0)