Skip to content

Commit

Permalink
Silence dead code warnings on InternalRequestError
Browse files Browse the repository at this point in the history
The internal fields may be useful for debugging but shouldn't be
displayed in error responses for privacy.
  • Loading branch information
spacebear21 committed Nov 7, 2024
1 parent 37638cc commit 91db443
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions payjoin/src/receive/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ pub(crate) enum InternalRequestError {
MissingPayment,
/// The original PSBT transaction fails the broadcast check
OriginalPsbtNotBroadcastable,
#[allow(dead_code)]
/// The sender is trying to spend the receiver input
InputOwned(bitcoin::ScriptBuf),
/// The expected input weight cannot be determined
InputWeight(crate::psbt::InputWeightError),
#[allow(dead_code)]
/// Original PSBT input has been seen before. Only automatic receivers, aka "interactive" in the spec
/// look out for these to prevent probing attacks.
InputSeen(bitcoin::OutPoint),
Expand Down

0 comments on commit 91db443

Please sign in to comment.