From dce4e5eecc656d3f7f0a02600348d7eea5fc639b 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 9c34925..0794bcd 100644 --- a/libwallet/src/api_impl/owner.rs +++ b/libwallet/src/api_impl/owner.rs @@ -458,8 +458,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, @@ -472,7 +472,7 @@ where wallet_inst.clone(), keychain_mask, status_send_channel, - refresh_from_node, + refresh_txs_from_node, tx_id, tx_slate_id, None,