-
Notifications
You must be signed in to change notification settings - Fork 424
Remove check_added_monitors macro
#4238
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
Conversation
|
I've assigned @wpaulino as a reviewer! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4238 +/- ##
==========================================
+ Coverage 89.33% 89.34% +0.01%
==========================================
Files 180 180
Lines 139302 139304 +2
Branches 139302 139304 +2
==========================================
+ Hits 124439 124462 +23
+ Misses 12240 12217 -23
- Partials 2623 2625 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| use lightning::ln::functional_test_utils::expect_payment_sent; | ||
| use lightning::ln::functional_test_utils::test_default_channel_config; | ||
| use lightning::ln::functional_test_utils::SendEvent; | ||
| use lightning::ln::functional_test_utils::{check_added_monitors, create_funding_transaction}; |
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.
We usually just import lightning::ln::functional_test_utils::*, no need to import all of these manually. There are a few more like this throughout the diff as well.
|
👋 The first review has been submitted! Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer. |
b5e05cd to
51de9f2
Compare
| @@ -1,14 +1,11 @@ | |||
| use lightning::check_closed_broadcast; | |||
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.
Can be removed now
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.
Wouldn't I still need it? since macros are available at the root of the crate. Removing it fails, I don't think it is imported as part of use lightning::ln::functional_test_utils::*;. Same for the other ones.
| check_added_monitors, check_spends, get_local_commitment_txn, get_monitor, | ||
| get_route_and_payment_hash, | ||
| }; | ||
| use crate::{check_spends, get_local_commitment_txn, get_monitor, get_route_and_payment_hash}; |
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.
These too
| mod tests { | ||
| use super::*; | ||
| use crate::chain::ChannelMonitorUpdateStatus; | ||
| use crate::check_closed_broadcast; |
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.
+1
|
Looks like this needs rebase now @elnosh |
Replace calls to `check_added_monitors` macro to the identically-named function.
51de9f2 to
8423ffa
Compare
No description provided.