mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 01:33:02 +01:00
Merge pull request #8615 from ProofOfKeags/bugfix/revert-compulsory-gossip-queries
Revert "feature: make gossip queries compulsory"
This commit is contained in:
commit
6377f98536
@ -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
|
||||
|
@ -14,7 +14,7 @@ var defaultSetDesc = setDesc{
|
||||
SetInit: {}, // I
|
||||
SetNodeAnn: {}, // N
|
||||
},
|
||||
lnwire.GossipQueriesRequired: {
|
||||
lnwire.GossipQueriesOptional: {
|
||||
SetInit: {}, // I
|
||||
SetNodeAnn: {}, // N
|
||||
},
|
||||
|
@ -151,7 +151,7 @@ func TestUpdateFeatureSets(t *testing.T) {
|
||||
SetInit: {}, // I
|
||||
SetNodeAnn: {}, // N
|
||||
},
|
||||
lnwire.GossipQueriesRequired: {
|
||||
lnwire.GossipQueriesOptional: {
|
||||
SetNodeAnn: {}, // N
|
||||
},
|
||||
}
|
||||
@ -201,7 +201,7 @@ func TestUpdateFeatureSets(t *testing.T) {
|
||||
),
|
||||
SetNodeAnn: lnwire.NewRawFeatureVector(
|
||||
lnwire.DataLossProtectRequired,
|
||||
lnwire.GossipQueriesRequired,
|
||||
lnwire.GossipQueriesOptional,
|
||||
lnwire.FeatureBit(1000),
|
||||
),
|
||||
},
|
||||
@ -222,7 +222,7 @@ func TestUpdateFeatureSets(t *testing.T) {
|
||||
),
|
||||
SetNodeAnn: lnwire.NewRawFeatureVector(
|
||||
lnwire.DataLossProtectRequired,
|
||||
lnwire.GossipQueriesRequired,
|
||||
lnwire.GossipQueriesOptional,
|
||||
),
|
||||
},
|
||||
config: Config{
|
||||
@ -242,7 +242,7 @@ func TestUpdateFeatureSets(t *testing.T) {
|
||||
),
|
||||
SetNodeAnn: lnwire.NewRawFeatureVector(
|
||||
lnwire.DataLossProtectRequired,
|
||||
lnwire.GossipQueriesRequired,
|
||||
lnwire.GossipQueriesOptional,
|
||||
lnwire.FeatureBit(500),
|
||||
),
|
||||
SetInvoice: lnwire.NewRawFeatureVector(
|
||||
|
@ -1138,7 +1138,6 @@ func TestPeerCustomMessage(t *testing.T) {
|
||||
initReplyMsg := lnwire.NewInitMessage(
|
||||
lnwire.NewRawFeatureVector(
|
||||
lnwire.DataLossProtectRequired,
|
||||
lnwire.GossipQueriesOptional,
|
||||
),
|
||||
lnwire.NewRawFeatureVector(),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user