-
Notifications
You must be signed in to change notification settings - Fork 42
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
Audit function signatures #405
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: spacebear21 <[email protected]> Co-authored-by: nothingmuch <[email protected]>
Another inconsistency to resolve |
#[cfg(feature = "v2")] receiver_pubkey: Option<HpkePublicKey>, | ||
#[cfg(feature = "v2")] receiver_pubkey: Option<HpkePublicKey>, // FIXME make Option<(pk, keys, exp)> | ||
#[cfg(feature = "v2")] ohttp_keys: Option<OhttpKeys>, | ||
#[cfg(feature = "v2")] expiry: Option<std::time::SystemTime>, | ||
) -> Self { |
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.
See also #431
treat_missing_as_error: bool, // FIXME never used! remove! | ||
) -> Result<(), InternalPsbtInputError> { | ||
match (&self.psbtin.non_witness_utxo, &self.psbtin.witness_utxo) { | ||
(None, None) if treat_missing_as_error => |
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.
Do we want to always treat this as an error? I saw that every time we call this we always pass true
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 think we can just remove it from the signature and usage entirely
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.
ok, so the behavior if none would just be
(None, None) => {
Err(InternalPsbtInputError::PrevTxOut(PrevTxOutError::MissingUtxoInformation))
}
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
No description provided.