-
Notifications
You must be signed in to change notification settings - Fork 224
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
cleanup: do not use output outcome to return decryption shares #6673
Conversation
ded6d29
to
a6ca6d1
Compare
@@ -583,6 +565,21 @@ impl ServerModule for Lightning { | |||
Ok(module.await_preimage(db, params.0, params.1).await) | |||
} | |||
}, | |||
api_endpoint! { | |||
DECRYPTION_KEY_SHARE_ENDPOINT, | |||
ApiVersion::new(0, 0), |
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 needs to point at the new, minor-increamented API version.
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.
Oh. Since it's on lnv2, we assume that nothing was released/deployed yet? OK.
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.
Yes, that would be the assumption. Just need to check with @elsirion on that...?
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.
As discussed on the dev call today: we could also change the major consensus version or the module kind
@@ -881,12 +881,6 @@ pub trait ServerModule: Debug + Sized { | |||
/// | |||
/// Depending on the module this might contain data needed by the client to | |||
/// access funds or give an estimate of when funds will be available. | |||
/// |
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 should probably still give the correct guidance on the meaning of None
, even if just to document the current state for our own purposes.
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, but probably you want at least one review from someone more familiar with LN.
LGTM as well, would like the comment @dpc mentioned to be preserved |
@joschisan Comments + rebase. |
e30994f
to
76cd3cb
Compare
/// | ||
/// In other words: after module has processed a given output it **MUST | ||
/// NOT** return `None` for it, as it will lead to the panic. | ||
/// Since this has become deprecated you may return None even if the output |
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 don't understand what "not used inside the module" means.
76cd3cb
to
846d2a5
Compare
846d2a5
to
a772d8c
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.
Seems good to me. I'd like to prioritize #6465 after merging so when v0.6 is released we don't accidentally break lnv2
No description provided.