Skip to content

Commit 818abd0

Browse files
committed
Bump payjoin to 1.0.0-rc.2
Update the lockfile and refine the skipped monitoring status.
1 parent c012c3a commit 818abd0

3 files changed

Lines changed: 9 additions & 12 deletions

File tree

Cargo.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ bdk_esplora = { version = "0.22.1", features = ["async-https", "tokio"], optiona
3333
bdk_kyoto = { version = "0.15.1", optional = true }
3434
bdk_redb = { version = "0.1.0", optional = true }
3535
shlex = { version = "1.3.0", optional = true }
36-
payjoin = { version = "1.0.0-rc.1", features = ["v1", "v2", "io", "_test-utils"], optional = true}
37-
reqwest = { version = "0.12.23", default-features = false, optional = true }
38-
url = { version = "2.5.4", optional = true }
36+
payjoin = { version = "1.0.0-rc.2", features = ["v1", "v2", "io", "_test-utils"], optional = true}
37+
reqwest = { version = "0.13.2", default-features = false, optional = true }
38+
url = { version = "2.5.8", optional = true }
3939

4040
[features]
4141
default = ["repl", "sqlite"]

src/payjoin/mod.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ impl StatusText for ReceiveSession {
8686
}
8787
ReceiverSessionOutcome::Cancel => "Session cancelled",
8888
ReceiverSessionOutcome::FallbackBroadcasted => "Fallback broadcasted",
89+
ReceiverSessionOutcome::PayjoinProposalSent => {
90+
"Payjoin proposal sent, skipping monitoring as the sender is spending non-SegWit inputs"
91+
}
8992
},
9093
}
9194
}
@@ -700,13 +703,6 @@ impl<'a> PayjoinManager<'a> {
700703
return Ok(Some(tx_details.tx.as_ref().clone()));
701704
}
702705
Err(ImplementationError::from("Cannot find the transaction in the mempool or the blockchain"))
703-
},
704-
|outpoint| {
705-
let utxo = self.wallet.get_utxo(outpoint);
706-
match utxo {
707-
Some(_) => Ok(false),
708-
None => Ok(true),
709-
}
710706
}
711707
)
712708
.save(persister);

0 commit comments

Comments
 (0)