From 44a6d06ace4626d2a222bf193a02c2cb936e9776 Mon Sep 17 00:00:00 2001 From: Buffrr Date: Tue, 4 Mar 2025 11:42:05 -0800 Subject: [PATCH] Fix outbid false positives --- client/src/wallets.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/wallets.rs b/client/src/wallets.rs index e4b5f5e..7f0f41c 100644 --- a/client/src/wallets.rs +++ b/client/src/wallets.rs @@ -684,6 +684,10 @@ impl RpcWallet { } } + res.outbid = res.outbid.into_iter() + .filter(|output| !wallet.is_mine(output.spaceout.script_pubkey.clone())) + .collect(); + for wallet_output in unspent.into_iter().filter(|output| output.space.is_some()) { let entry = FullSpaceOut { txid: wallet_output.output.outpoint.txid,