-
Notifications
You must be signed in to change notification settings - Fork 385
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
Updated ClosureReason::HolderForceClosed
with whether txn was broadcasted.
#3107
Updated ClosureReason::HolderForceClosed
with whether txn was broadcasted.
#3107
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3107 +/- ##
==========================================
+ Coverage 89.88% 90.71% +0.82%
==========================================
Files 119 119
Lines 97551 103899 +6348
Branches 97551 103899 +6348
==========================================
+ Hits 87681 94247 +6566
+ Misses 7304 7141 -163
+ Partials 2566 2511 -55 ☔ View full report in Codecov by Sentry. |
Looking at this now I wonder if we shouldn't just add a |
Good call, I like that way better. |
ClosureReason::Abandoned
for channel closes.ClosureReason::HolderForceClosed
with whether txn was broadcasted.
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.
LGTM, modulo docs
1bc8529
to
e9ab795
Compare
8299d04
to
099617f
Compare
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.
Okay two more tiny nits, then we're good, I think.
099617f
to
808d814
Compare
@TheBlueMatt is the |
Its I have not seen that one, but its clearly unrelated to this PR. Opened #3114 |
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.
Lgtm !
just 1 nit.
ClosureReason::HolderForceClosed { broadcasted_latest_txn } => { | ||
f.write_str("user force-closed the channel")?; | ||
if let Some(brodcasted) = broadcasted_latest_txn { | ||
write!(f, " and {} the latest transaction", if *brodcasted { "broadcasted" } else { "did not 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.
nit: did not broadcast -> was not broadcasted.
"did not" implies we tried to broadcast it.
Gonna land this, will just do the nit in a followup. |
This can be used to determine if the channel was force closed with the latest transaction broadcast, or if it was simply abandoned.