Skip to content

Commit

Permalink
Merge pull request #8615 from ProofOfKeags/bugfix/revert-compulsory-g…
Browse files Browse the repository at this point in the history
…ossip-queries

Revert "feature: make gossip queries compulsory"
  • Loading branch information
guggero committed Apr 5, 2024
2 parents e509657 + 939e3cc commit 6377f98
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions docs/release-notes/release-notes-0.18.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ bitcoin peers' feefilter values into account](https://github.com/lightningnetwor
and makes TLV Onions, Static Remote Keys, Gossip Queries, compulsory features
for LND's peers. Data Loss Protection has been compulsory for years.

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

## Testing

* Added fuzz tests for [onion
Expand Down
2 changes: 1 addition & 1 deletion feature/default_sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var defaultSetDesc = setDesc{
SetInit: {}, // I
SetNodeAnn: {}, // N
},
lnwire.GossipQueriesRequired: {
lnwire.GossipQueriesOptional: {
SetInit: {}, // I
SetNodeAnn: {}, // N
},
Expand Down
8 changes: 4 additions & 4 deletions feature/manager_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func TestUpdateFeatureSets(t *testing.T) {
SetInit: {}, // I
SetNodeAnn: {}, // N
},
lnwire.GossipQueriesRequired: {
lnwire.GossipQueriesOptional: {
SetNodeAnn: {}, // N
},
}
Expand Down Expand Up @@ -201,7 +201,7 @@ func TestUpdateFeatureSets(t *testing.T) {
),
SetNodeAnn: lnwire.NewRawFeatureVector(
lnwire.DataLossProtectRequired,
lnwire.GossipQueriesRequired,
lnwire.GossipQueriesOptional,
lnwire.FeatureBit(1000),
),
},
Expand All @@ -222,7 +222,7 @@ func TestUpdateFeatureSets(t *testing.T) {
),
SetNodeAnn: lnwire.NewRawFeatureVector(
lnwire.DataLossProtectRequired,
lnwire.GossipQueriesRequired,
lnwire.GossipQueriesOptional,
),
},
config: Config{
Expand All @@ -242,7 +242,7 @@ func TestUpdateFeatureSets(t *testing.T) {
),
SetNodeAnn: lnwire.NewRawFeatureVector(
lnwire.DataLossProtectRequired,
lnwire.GossipQueriesRequired,
lnwire.GossipQueriesOptional,
lnwire.FeatureBit(500),
),
SetInvoice: lnwire.NewRawFeatureVector(
Expand Down
1 change: 0 additions & 1 deletion peer/brontide_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,6 @@ func TestPeerCustomMessage(t *testing.T) {
initReplyMsg := lnwire.NewInitMessage(
lnwire.NewRawFeatureVector(
lnwire.DataLossProtectRequired,
lnwire.GossipQueriesOptional,
),
lnwire.NewRawFeatureVector(),
)
Expand Down

0 comments on commit 6377f98

Please sign in to comment.