Skip to content

Move events.rs into its own top-level module #2083

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
merged 2 commits into from
Mar 28, 2023

Conversation

wpaulino
Copy link
Contributor

@wpaulino wpaulino commented Mar 7, 2023

This is largely motivated by some follow-up work for anchors that will introduce an event handler for BumpTransaction events, which we can now include in this new top-level events module.

Copy link
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

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

I think the CI failure is only due to missing module docs, LGTM otherwise.

@TheBlueMatt
Copy link
Collaborator

CI is sad because bump_transaction doesn't hav emodule docs. This LGTM, though, once CI passes.

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 63.79% and project coverage change: -0.03 ⚠️

Comparison is base (14ee173) 91.43% compared to head (274ed43) 91.40%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2083      +/-   ##
==========================================
- Coverage   91.43%   91.40%   -0.03%     
==========================================
  Files         101      102       +1     
  Lines       49536    49536              
  Branches    49536    49536              
==========================================
- Hits        45291    45278      -13     
- Misses       4245     4258      +13     
Impacted Files Coverage Δ
lightning-background-processor/src/lib.rs 78.29% <ø> (ø)
lightning-invoice/src/utils.rs 97.06% <ø> (ø)
lightning-net-tokio/src/lib.rs 78.41% <ø> (ø)
lightning-persister/src/lib.rs 89.25% <ø> (ø)
lightning/src/chain/chainmonitor.rs 94.63% <ø> (ø)
lightning/src/chain/channelmonitor.rs 94.52% <ø> (ø)
lightning/src/chain/keysinterface.rs 86.88% <ø> (ø)
lightning/src/events/mod.rs 31.26% <ø> (ø)
lightning/src/lib.rs 83.33% <ø> (ø)
lightning/src/ln/chanmon_update_fail_tests.rs 98.59% <ø> (ø)
... and 22 more

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

This is largely motivated by some follow-up work for anchors that will
introduce an event handler for `BumpTransaction` events, which we can
now include in this new top-level `events` module.
Its accompanying event handler will also live here.
@wpaulino
Copy link
Contributor Author

Had to rebase due to a conflict.

Copy link
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

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

LGTM, might want to update the doc references in lightingdevkit.org/docs in a follow-up.

@TheBlueMatt TheBlueMatt merged commit 2d4bf97 into lightningdevkit:main Mar 28, 2023
@wpaulino wpaulino deleted the events-module branch March 28, 2023 16:43
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.

4 participants