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

Update Channel Monitor without broadcasting transactions #3428

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yellowred
Copy link
Contributor

Allowing Channel Monitor to be updated without executing any commands outside ChannelMonitor. This allows reading Channel Monitor in MonitorUpdatingPersister without using broadcaster and fee estimator and broadcast claims when the node is ready for it.

@yellowred yellowred force-pushed the oleg_cmo_update_no_broadcast branch 2 times, most recently from aa8a8f8 to 9ae5067 Compare November 27, 2024 01:56
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 81.85185% with 49 lines in your changes missing coverage. Please review.

Project coverage is 89.23%. Comparing base (12920d8) to head (9ae5067).

Files with missing lines Patch % Lines
lightning/src/chain/channelmonitor.rs 81.85% 36 Missing and 13 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3428      +/-   ##
==========================================
- Coverage   89.24%   89.23%   -0.01%     
==========================================
  Files         130      130              
  Lines      106912   107132     +220     
  Branches   106912   107132     +220     
==========================================
+ Hits        95410    95602     +192     
- Misses       8706     8728      +22     
- Partials     2796     2802       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Allowing Channel Monitor to be updated without executing any commands outside
ChannelMonitor. This allows reading Channel Monitor in MonitorUpdatingPersister
without using broadcaster and fee estimator and broadcast claims when the node
is ready for it.
@yellowred yellowred marked this pull request as ready for review November 27, 2024 02:53

/// Same as [provide_payment_preimage], but does not immediately broadcasts transactions,
/// returning them back to the caller instead.
fn provide_payment_preimage_without_broadcasting<L: Deref>(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@TheBlueMatt Not sure about this func. On one hand I don't want to change provide_payment_preimage, on the other -- there is clear duplicated logic. Do you think it would be better to modify provide_payment_preimage to support returning claims?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant