Skip to content

discovery: flag flip no historical gossip#3359

Merged
Roasbeef merged 4 commits intolightningnetwork:masterfrom
cfromknecht:flag-flip-no-historical-gossip
Aug 2, 2019
Merged

discovery: flag flip no historical gossip#3359
Roasbeef merged 4 commits intolightningnetwork:masterfrom
cfromknecht:flag-flip-no-historical-gossip

Conversation

@cfromknecht
Copy link
Contributor

This PR adds the ignore-historical-filters CLI option, initially
defaulting to false. Users may use this option to prevent lnd from doing
historical gossip dumps to peers that set their gossip_timestamp_range
in the past. Enabling this option will result in lower bandwidth and
memory consumption. Down the road the plan is to make this default to
true.

@cfromknecht cfromknecht added this to the 0.8.0 milestone Jul 30, 2019
@cfromknecht cfromknecht changed the title Flag flip no historical gossip discovery: flag flip no historical gossip Jul 30, 2019
Copy link
Contributor

@wpaulino wpaulino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💫

Looks like Eclair also sends out the current timestamp as the start of the range, though c-lightning can vary depending on how much gossip they've ingested.

@wpaulino wpaulino added config Parameters/arguments/config file related issues/PRs discovery Peer and route discovery / whisper protocol related issues/PRs gossip labels Jul 30, 2019
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty compact diff, reads well at first pass through. Only main comment is to add a new test to exercise ignoring the backlog for a gossip syncer if the new flag is set.

@cfromknecht cfromknecht force-pushed the flag-flip-no-historical-gossip branch from 05dd494 to 09a46dc Compare July 31, 2019 00:24
This commit adds the ignore-historical-filters CLI option, initially
defaulting to false. Users may use this option to prevent lnd from doing
historical gossip dumps to peers that set their `gossip_timestamp_range`
in the past. Enabling this option will result in lower bandwidth and
memory consumption. Down the road the plan is to make this default to
true.
@cfromknecht cfromknecht force-pushed the flag-flip-no-historical-gossip branch from 09a46dc to 9947190 Compare July 31, 2019 00:26
@cfromknecht
Copy link
Contributor Author

@Roasbeef test added, stripped the existing test from #3315 so should make the code removal at that point simpler as well

Copy link
Contributor

@halseth halseth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐻

Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 📊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config Parameters/arguments/config file related issues/PRs discovery Peer and route discovery / whisper protocol related issues/PRs gossip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants