Skip to content

Commit 11a2a57

Browse files
Copilotlklimek
andauthored
fix(key-wallet-ffi): include blockchain_identities_* accounts in mark_address_used scan (#557)
* Initial plan * fix: add blockchain_identities_* scanning to managed_wallet_mark_address_used Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com>
1 parent b4df963 commit 11a2a57

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

key-wallet-ffi/src/address_pool.rs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,34 @@ pub unsafe extern "C" fn managed_wallet_mark_address_used(
804804
}
805805
}
806806
}
807+
if !found {
808+
if let Some(account) = &mut collection.blockchain_identities_ecdsa {
809+
if account.mark_address_used(&address) {
810+
found = true;
811+
}
812+
}
813+
}
814+
if !found {
815+
if let Some(account) = &mut collection.blockchain_identities_ecdsa_hash160 {
816+
if account.mark_address_used(&address) {
817+
found = true;
818+
}
819+
}
820+
}
821+
if !found {
822+
if let Some(account) = &mut collection.blockchain_identities_bls {
823+
if account.mark_address_used(&address) {
824+
found = true;
825+
}
826+
}
827+
}
828+
if !found {
829+
if let Some(account) = &mut collection.blockchain_identities_bls_hash160 {
830+
if account.mark_address_used(&address) {
831+
found = true;
832+
}
833+
}
834+
}
807835
if !found {
808836
for account in collection.dashpay_receival_accounts.values_mut() {
809837
if account.mark_address_used(&address) {

0 commit comments

Comments
 (0)