From 6517e3d4ed1a96d73a768654f6623800377c7832 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Sat, 10 Oct 2026 14:18:40 +0300 Subject: [PATCH] fix: do not scan outputs twice on payment proof retrieval (#830) --- libwallet/src/api_impl/owner.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libwallet/src/api_impl/owner.rs b/libwallet/src/api_impl/owner.rs index 58bfbd2..0f2f46b 100644 --- a/libwallet/src/api_impl/owner.rs +++ b/libwallet/src/api_impl/owner.rs @@ -446,8 +446,8 @@ where "Transaction ID or Slate UUID must be specified".to_owned(), )); } - if refresh_from_node { - update_wallet_state( + let refresh_txs_from_node = if refresh_from_node { + !update_wallet_state( wallet_inst.clone(), keychain_mask, status_send_channel, @@ -460,7 +460,7 @@ where wallet_inst.clone(), keychain_mask, status_send_channel, - refresh_from_node, + refresh_txs_from_node, tx_id, tx_slate_id, None,