From 71c006bb8ef5d0aa2a7d25ab60d045adc40b1224 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Mar 2026 17:21:41 +0000 Subject: [PATCH 1/2] Initial plan From 9a466568e7e57d99d32c4ffaf424d0d6a641a4b7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Mar 2026 17:28:40 +0000 Subject: [PATCH 2/2] fix: add blockchain_identities_* scanning to managed_wallet_mark_address_used Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com> --- key-wallet-ffi/src/address_pool.rs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/key-wallet-ffi/src/address_pool.rs b/key-wallet-ffi/src/address_pool.rs index 4246de4a2..211fcfeda 100644 --- a/key-wallet-ffi/src/address_pool.rs +++ b/key-wallet-ffi/src/address_pool.rs @@ -804,6 +804,34 @@ pub unsafe extern "C" fn managed_wallet_mark_address_used( } } } + if !found { + if let Some(account) = &mut collection.blockchain_identities_ecdsa { + if account.mark_address_used(&address) { + found = true; + } + } + } + if !found { + if let Some(account) = &mut collection.blockchain_identities_ecdsa_hash160 { + if account.mark_address_used(&address) { + found = true; + } + } + } + if !found { + if let Some(account) = &mut collection.blockchain_identities_bls { + if account.mark_address_used(&address) { + found = true; + } + } + } + if !found { + if let Some(account) = &mut collection.blockchain_identities_bls_hash160 { + if account.mark_address_used(&address) { + found = true; + } + } + } if !found { for account in collection.dashpay_receival_accounts.values_mut() { if account.mark_address_used(&address) {