Skip to content
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

Improve block connection logging #2348

Open
TheBlueMatt opened this issue Jun 9, 2023 · 6 comments
Open

Improve block connection logging #2348

TheBlueMatt opened this issue Jun 9, 2023 · 6 comments
Labels
good first issue Good for newcomers
Milestone

Comments

@TheBlueMatt
Copy link
Collaborator

We regularly get users reporting issues with block sync (cause our API is a bit confusing, which desperately needs fixing by exposing the block sync crates to bindings users). These are quite hard to debug from our logs as our logs just aren't super detailed. We should log txids connected/confirmed as long as the list is small-ish, and maybe also log when we add things to the filter.

@TheBlueMatt TheBlueMatt added this to the 0.2 milestone Jun 9, 2023
@tnull tnull added the good first issue Good for newcomers label Jun 12, 2023
@Sharmalm
Copy link
Contributor

Sharmalm commented Sep 3, 2023

can i try this one?

@TheBlueMatt
Copy link
Collaborator Author

Go for it. Should require carefully reading the block and transaction connection codepaths from ChannelManager and ChainMonitor all the way down and just ensuring that everything that happens gets logged but only once.

@Sharmalm
Copy link
Contributor

Sharmalm commented Sep 5, 2023

Could i get more information about codepath from channelManager and Chainmonitor , and how channelmaanger is accesing txids from chainmonitor .
and also here 'txid' mentioned here is transaction id of funding transaction?

@TheBlueMatt
Copy link
Collaborator Author

They're fully separate, called independently from LDK users' code.

@Sharmalm
Copy link
Contributor

Sharmalm commented Sep 7, 2023

Ok ,
during constructing a channel message flow is - alice : open_channel , Bob : accept channel, alice : funding_created , bob : funding_signed and after funding_signed message funding_transaction broadcasted . so i have to log after funding signed message .

@TheBlueMatt
Copy link
Collaborator Author

This issue is about the block connection, though, not the message handling flow. Block connection happens via transactions_confirmed/transactions_unconfirmed/block_connected/block_disconnected.

Sharmalm added a commit to Sharmalm/rust-lightning that referenced this issue Nov 28, 2023
This commit is logging confirmed txids and also logging when we adds things to the filter
solves lightningdevkit#2348
Sharmalm added a commit to Sharmalm/rust-lightning that referenced this issue Dec 7, 2023
Implement the Display trait for Outpoint and utilize it in the codebase for monitoring outpoints.
Additionally, add log tracing for best_block_update and confirmed transactions.
solves lightningdevkit#2348
Sharmalm added a commit to Sharmalm/rust-lightning that referenced this issue Dec 7, 2023
Implement the Display trait for Outpoint and utilize it in the codebase for monitoring outpoints.
Additionally, add log tracing for best_block_update and confirmed transactions.
solves lightningdevkit#2348
Sharmalm added a commit to Sharmalm/rust-lightning that referenced this issue Dec 11, 2023
Implement the Display trait for Outpoint and utilize it in the codebase for monitoring outpoints.
Additionally, add log tracing for best_block_update and confirmed transactions.
solves lightningdevkit#2348
Sharmalm added a commit to Sharmalm/rust-lightning that referenced this issue Dec 11, 2023
Implement the Display trait for Outpoint and utilize it in the codebase for monitoring outpoints.
Additionally, add log tracing for best_block_update and confirmed transactions.
solves lightningdevkit#2348
yellowred pushed a commit to yellowred/rust-lightning that referenced this issue Dec 19, 2023
Implement the Display trait for Outpoint and utilize it in the codebase for monitoring outpoints.
Additionally, add log tracing for best_block_update and confirmed transactions.
solves lightningdevkit#2348
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants