-
Notifications
You must be signed in to change notification settings - Fork 410
Cleanup logging #965
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
TheBlueMatt
merged 14 commits into
lightningdevkit:main
from
TheBlueMatt:2021-06-log-cleanups
Jun 29, 2021
Merged
Cleanup logging #965
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d61d698
Don't print file paths in fuzz logger as they can be very long
TheBlueMatt c5a6135
log_debug information about network graph updates from payments
TheBlueMatt 95f9523
Drop rust-bitcoin crate patches in fuzz now that they're merged
TheBlueMatt a146ef2
Do not generate error messages when we receive our own gossip
TheBlueMatt 133e28f
Add error logs when a ChannelManager as inconsistent monitor state
TheBlueMatt 3ea4279
Unify message sending to use PeerManager::enqueue_message
TheBlueMatt d36a875
More consistently log in msg handling, incl full msg logging at trace
TheBlueMatt 7fa6a7d
Allow logging to specify an explicit log level instead of a macro
TheBlueMatt 1f592b0
Do not log_debug when we receive duplicate gossip messages
TheBlueMatt 7eff56b
Update logging in channel and channelmanager to better levels
TheBlueMatt 76ea834
Add additional TRACE-level logging during pathfinding in router
TheBlueMatt 74717d3
Increase the log level of several channelmonitor/onchain logs.
TheBlueMatt 6d446a6
Correct inbound HTLC upgrade logs on revoke_and_ack receipt
TheBlueMatt 6d98aed
Add debug log when we stop tracking confirmed on-chain packages
TheBlueMatt 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
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.
Though #949 blurs this assertion, a direct peer might learn a channel_update for outbound-from-us payments.
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.
#949 should only be sending the message directly to the channel counterparty, so I think its still correct. Its true we do tell other nodes about our private channels in invoices, but they still shouldn't remember that, nor should they ever have channel_updates for those messages. Do you have a suggestion for a different concrete wording?
Uh oh!
There was an error while loading. Please reload this page.
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.
I think your comment is right if this peer is applying the same gossip policy than us ? Some weird LN client could not sort discovered gossips according to their sources and treat them uniformly, I don't think that's something the specification is covering (and IMHO it should be strongly opinionated on this).
So as a suggestion maybe prefix "Gossip policy: Got a channel_update for a channel from the wrong node - we consider it shouldn't know about this private channels!" ?
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 specification is clear that you should not accept or forward a
channel_update
unless you've received the correspondingchannel_announcement
, which we will never generate signatures for, so it cannot exist.