-
Notifications
You must be signed in to change notification settings - Fork 1k
Maintain permanent connections for active channels #1322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rustyrussell
merged 21 commits into
ElementsProject:master
from
rustyrussell:guilt/permconnect
Apr 26, 2018
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c7c1a04
test_lightningd.py: make tests more robust by suppressing reconnects.
rustyrussell 3524a32
gossipd: exponential backoff for reconnect (5 minute ceiling).
rustyrussell f000f52
gossipd: explicitly track which peers are important.
rustyrussell 832fbf3
openingd: tell gossipd that the peer is important once funding tx in …
rustyrussell e0686ba
lightningd: tell gossipd that peers we load from db are important.
rustyrussell 7e90e4e
gossipd: maintain a separate structure to track important peers.
rustyrussell b40b8f0
gossipd: keep reaching struct only when we're actively connecting, an…
rustyrussell 39574c0
closing: don't go into temporary failure because we completed negotia…
rustyrussell 66239b5
gossipd: drain fd instead of passing around gossip index.
rustyrussell c75ecd9
read_peer_msg: handle incoming gossip from gossipd.
rustyrussell 174e578
subd: record which ones connect to a peer.
rustyrussell 2b24e64
gossipd: have master explicitly tell us when peer is disconnected.
rustyrussell ad6f765
gossipd: make sure master only ever sees one active connection.
rustyrussell 60e9d66
gossipd: use exponential backoff on reconnect for important peers.
rustyrussell c34ac8b
json_listpeers: use channel connected flag for JSON.
rustyrussell ea71a2a
gossipd: give more distinct errors.
rustyrussell a02d466
gossipd: don't create a new chain of timers on every connect command.
rustyrussell 4421050
channeld: get told when announce depth already reached.
rustyrussell 69fa1cc
lightningd: move "tell gossipd peer is no longer important" to drop_t…
rustyrussell e9da2e1
common: typo fix.
rustyrussell a553b44
gossipd: don't handle multiple connect requests, combine them in ligh…
rustyrussell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
read_peer_msghandles this new feature in closingd and openingd? So it still occurs even if closingd and openingd do not include new code?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's all inside read_peer_msg, which is why this change was a no-brainer.