Skip to content

Commit 1201492

Browse files
committedFeb 12, 2025··

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎payjoin/src/receive/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ pub(crate) enum InternalSelectionError {
318318
/// No candidates available for selection
319319
Empty,
320320
/// Current privacy selection implementation only supports 2-output transactions
321-
TooManyOutputs,
321+
UnsupportedOutputLength,
322322
/// No selection candidates improve privacy
323323
NotFound,
324324
}
@@ -327,7 +327,7 @@ impl fmt::Display for SelectionError {
327327
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
328328
match &self.0 {
329329
InternalSelectionError::Empty => write!(f, "No candidates available for selection"),
330-
InternalSelectionError::TooManyOutputs => write!(
330+
InternalSelectionError::UnsupportedOutputLength => write!(
331331
f,
332332
"Current privacy selection implementation only supports 2-output transactions"
333333
),

‎payjoin/src/receive/v1/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ impl WantsInputs {
436436
candidate_inputs: impl IntoIterator<Item = InputPair>,
437437
) -> Result<InputPair, SelectionError> {
438438
if self.payjoin_psbt.outputs.len() != 2 {
439-
return Err(InternalSelectionError::TooManyOutputs.into());
439+
return Err(InternalSelectionError::UnsupportedOutputLength.into());
440440
}
441441

442442
let min_out_sats = self

0 commit comments

Comments
 (0)
Please sign in to comment.