Skip to content

Commit

Permalink
fix bug in scanBIP44Addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoacosta74 authored and rileystephens28 committed Oct 17, 2024
1 parent b7753b6 commit fe5d45e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wallet/qi-hdwallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,10 @@ export class QiHDWallet extends AbstractHDWallet {
// First, add all used gap addresses to the address map and import their outpoints
for (const addressInfo of usedGapAddresses) {
this._addAddress(addressMap, account, addressInfo.index, isChange);
}

// Scan outpoints for every address in the address map
for (const addressInfo of addressMap.values()) {
const outpoints = await this.getOutpointsByAddress(addressInfo.address);
if (outpoints.length > 0) {
this.importOutpoints(
Expand Down

0 comments on commit fe5d45e

Please sign in to comment.