mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 01:42:57 +02:00
Merge pull request #8615 from ProofOfKeags/bugfix/revert-compulsory-gossip-queries
Revert "feature: make gossip queries compulsory"
This commit is contained in:
@@ -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
|
and makes TLV Onions, Static Remote Keys, Gossip Queries, compulsory features
|
||||||
for LND's peers. Data Loss Protection has been compulsory for years.
|
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
|
## Testing
|
||||||
|
|
||||||
* Added fuzz tests for [onion
|
* Added fuzz tests for [onion
|
||||||
|
@@ -14,7 +14,7 @@ var defaultSetDesc = setDesc{
|
|||||||
SetInit: {}, // I
|
SetInit: {}, // I
|
||||||
SetNodeAnn: {}, // N
|
SetNodeAnn: {}, // N
|
||||||
},
|
},
|
||||||
lnwire.GossipQueriesRequired: {
|
lnwire.GossipQueriesOptional: {
|
||||||
SetInit: {}, // I
|
SetInit: {}, // I
|
||||||
SetNodeAnn: {}, // N
|
SetNodeAnn: {}, // N
|
||||||
},
|
},
|
||||||
|
@@ -151,7 +151,7 @@ func TestUpdateFeatureSets(t *testing.T) {
|
|||||||
SetInit: {}, // I
|
SetInit: {}, // I
|
||||||
SetNodeAnn: {}, // N
|
SetNodeAnn: {}, // N
|
||||||
},
|
},
|
||||||
lnwire.GossipQueriesRequired: {
|
lnwire.GossipQueriesOptional: {
|
||||||
SetNodeAnn: {}, // N
|
SetNodeAnn: {}, // N
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -201,7 +201,7 @@ func TestUpdateFeatureSets(t *testing.T) {
|
|||||||
),
|
),
|
||||||
SetNodeAnn: lnwire.NewRawFeatureVector(
|
SetNodeAnn: lnwire.NewRawFeatureVector(
|
||||||
lnwire.DataLossProtectRequired,
|
lnwire.DataLossProtectRequired,
|
||||||
lnwire.GossipQueriesRequired,
|
lnwire.GossipQueriesOptional,
|
||||||
lnwire.FeatureBit(1000),
|
lnwire.FeatureBit(1000),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
@@ -222,7 +222,7 @@ func TestUpdateFeatureSets(t *testing.T) {
|
|||||||
),
|
),
|
||||||
SetNodeAnn: lnwire.NewRawFeatureVector(
|
SetNodeAnn: lnwire.NewRawFeatureVector(
|
||||||
lnwire.DataLossProtectRequired,
|
lnwire.DataLossProtectRequired,
|
||||||
lnwire.GossipQueriesRequired,
|
lnwire.GossipQueriesOptional,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
config: Config{
|
config: Config{
|
||||||
@@ -242,7 +242,7 @@ func TestUpdateFeatureSets(t *testing.T) {
|
|||||||
),
|
),
|
||||||
SetNodeAnn: lnwire.NewRawFeatureVector(
|
SetNodeAnn: lnwire.NewRawFeatureVector(
|
||||||
lnwire.DataLossProtectRequired,
|
lnwire.DataLossProtectRequired,
|
||||||
lnwire.GossipQueriesRequired,
|
lnwire.GossipQueriesOptional,
|
||||||
lnwire.FeatureBit(500),
|
lnwire.FeatureBit(500),
|
||||||
),
|
),
|
||||||
SetInvoice: lnwire.NewRawFeatureVector(
|
SetInvoice: lnwire.NewRawFeatureVector(
|
||||||
|
@@ -1138,7 +1138,6 @@ func TestPeerCustomMessage(t *testing.T) {
|
|||||||
initReplyMsg := lnwire.NewInitMessage(
|
initReplyMsg := lnwire.NewInitMessage(
|
||||||
lnwire.NewRawFeatureVector(
|
lnwire.NewRawFeatureVector(
|
||||||
lnwire.DataLossProtectRequired,
|
lnwire.DataLossProtectRequired,
|
||||||
lnwire.GossipQueriesOptional,
|
|
||||||
),
|
),
|
||||||
lnwire.NewRawFeatureVector(),
|
lnwire.NewRawFeatureVector(),
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user