-
Notifications
You must be signed in to change notification settings - Fork 407
Simplify UpdateFulfillFetch::NewClaim
#3803
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
base: main
Are you sure you want to change the base?
Conversation
👋 Thanks for assigning @jkczyz as a reviewer! |
cbc4450
to
237259f
Compare
lightning/src/ln/channel.rs
Outdated
@@ -1015,7 +1015,7 @@ enum UpdateFulfillFetch { | |||
NewClaim { | |||
monitor_update: ChannelMonitorUpdate, | |||
htlc_value_msat: u64, | |||
msg: Option<msgs::UpdateFulfillHTLC>, | |||
update_non_blocked: bool, |
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.
Not 100% sure what to call this. Could invert and simply call it blocked?
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.
Yeah, I was thinking maybe update_blocked
.
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.
Updated
6f094bb
to
5ef74c0
Compare
The actual message is not used anywhere.
5ef74c0
to
d0288cd
Compare
👋 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. |
When working on #3801, I discovered that this code can be simplified.