-
Notifications
You must be signed in to change notification settings - Fork 945
Let gossipd automatically announce the node when a local channel_announcement is queued #413
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 25 commits into
ElementsProject:master
from
cdecker:gossip-node-announce
Dec 17, 2017
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
98b1a66
gossip: Remove HSM_FD from handshake
cdecker 37e9d14
routing: Make routing_state aware of its own ID
cdecker 4c13032
opts: Change alias to be u8*, better matches the unicode nature
cdecker 7427c8a
gossip: Passing alias, color and wireaddrs through to gossipd
cdecker abe9192
routing: Return boolean from handle_channel_announcement
cdecker dfc5a6e
routing: Add local and sigfail to trace when receiving cannounce
cdecker aa67236
gossip: Forward when we don't have a valid node_announcement yet
cdecker 88218a0
routing: Do not set an empty channel_announcement if none is given
cdecker c1b4f41
json_fund_channel: give more details than "peer died".
rustyrussell e99f69e
subd: add transaction to subd exit corner case.
rustyrussell 6793efe
wireaddr: marshal empty address properly.
rustyrussell 139774c
openingd: return to master for more gossip when negotiation fails.
rustyrussell c984fb2
openingd: handle ERROR packets (if other end fails negotiation).
rustyrussell 6889fe7
test_lightningd: add test for funding failures.
rustyrussell 616bc26
daemon_conn: helper to release daemon_conn.
rustyrussell 06a0188
gossipd: split peer structure to clearly separate local and remote fi…
rustyrussell 62634e9
Makefile: make gossipd objects depend correctly on its own headers.
rustyrussell c552fa8
subd: if a required daemon exits, wait instead of killing it.
rustyrussell b9eddbe
gossipd: don't hand length to route code, it's implied.
rustyrussell 09151fd
gossipd: hand back peer, don't hand a new peer.
rustyrussell a4512ea
gossipd: don't increment broadcast_index until *after* message sent.
rustyrussell 2a2902b
gossipd: hand out gossip_index to other daemons.
rustyrussell a22d341
pytest: Fix a flaky channel_reenable test
cdecker c787e51
channel: Directly send announcements and updates to gossipd
cdecker 234b412
pytest: Minor cleanup
cdecker 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
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
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.
Could return
NULL
liketal_free
so calls would look like this:dc = daemon_conn_clear(dc)
to signal that the
dc
has been taken care of. The only call fordaemon_conn_clear
is directly followed by atal_free
on thedaemon_conn
anyway.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.
Hmm, yes, but as you say it's only got one caller, so maybe overkill.