-
Notifications
You must be signed in to change notification settings - Fork 404
Implement a "phase 2" API for sign_closing_transaction #1064
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
Implement a "phase 2" API for sign_closing_transaction #1064
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1064 +/- ##
==========================================
+ Coverage 90.87% 91.13% +0.25%
==========================================
Files 65 65
Lines 33229 34569 +1340
==========================================
+ Hits 30196 31503 +1307
- Misses 3033 3066 +33
Continue to review full report at Codecov.
|
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.
Generally LGTM.
lightning/src/ln/chan_utils.rs
Outdated
|
||
if value_to_counterparty > 0 { | ||
txouts.push((TxOut { | ||
script_pubkey: counterparty_shutdown_script, |
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.
(here and in channel.rs) Calling this the "shutdown" script is a misnomer - the payout script is different from the shutdown one.
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.
Done
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.
I must've been high, I'm not sure what this means. Either script or shutdown_script are fine...
f953f43
to
25d2e3e
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.
Just nits, LGTM
25d2e3e
to
6a870a0
Compare
6a870a0
to
eebc0a9
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.
Only diff since Val's ack are addressing comments, will land after CI.
This allows the signer to figure out which output is ours without potentially complicated parsing.