-
Notifications
You must be signed in to change notification settings - Fork 961
splice: signer must be informed of splice params #6746
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
splice: signer must be informed of splice params #6746
Conversation
cf18fa6 to
555ecf6
Compare
3fe70d0 to
6b79651
Compare
|
We discuss the semantics of the P.S: This semantics can change in the future iirc @devrandom and @ksedgwic are still thinking about all the design possibility |
|
[deleted - attached message to wrong PR] |
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.
this generally looks fine, but I didn't check all the call sites in detail
I follow the @ksedgwic call here, but we call the hsmd function in two places:
and we set the Let me know if this needs some more love somewhere :) |
6b79651 to
452dfad
Compare
This comment was marked as outdated.
This comment was marked as outdated.
716d2a5 to
cff36f1
Compare
|
The assertion in libhsmd.c: may not make sense if we change the meaning of I recommend striking that assertion; I don't think there is any useful assertion to replace it with. |
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.
This looks good to me.
|
I still think we need to strike (remove) the assertion in |
Thanks @ksedgwic, I missed this. I pushed it on d10f33b because I think it deserves a proper commit explanation |
The signer needs to know when the splice operation starts and the splice parameters for each splice transaction candidate. The channel establishment v2 (dual funding) code path already notifies the signer via the hsmd API hsmd_ready_channel calls However, the splicing code path does not. Link: ElementsProject#6723 Suggested-by: @devrandom Co-Developed-by: @devrandom Co-Developed-by: Ken Sedgwick <ken@bonsai.com> Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
The assertion may not make sense if we change the meaning of `push_value` to be relative, especially since negative values appear as large positive. Suggested-by: Ken Sedgwick <ken@bonsai.com> Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
cff36f1 to
a8e9cd6
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.
ACK a8e9cd6b
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.
Ack a8e9cd6
The signer needs to know when the splice operation starts and the splice parameters for each splice transaction candidate.
The channel establishment v2 (dual funding) code path already notifies the signer via the hsmd API hsmd_ready_channel calls However, the splicing code path does not.
Fixes: #6723
Suggested-by: @devrandom
Co-Developed-by: @devrandom
Co-Developed-by: Ken Sedgwick ken@bonsai.com