mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
fix: add bip47 addresses to the hashmap
This commit is contained in:
parent
563f09012d
commit
68dc86e11a
1 changed files with 6 additions and 0 deletions
|
@ -523,6 +523,12 @@ export class AbstractHDElectrumWallet extends AbstractHDWallet {
|
|||
for (let c = 0; c < this.next_free_change_address_index + 1; c++) {
|
||||
ownedAddressesHashmap[this._getInternalAddressByIndex(c)] = true;
|
||||
}
|
||||
if (this._sender_payment_codes)
|
||||
for (const pc of this._sender_payment_codes) {
|
||||
for (let c = 0; c < this._getNextFreePaymentCodeAddress(pc) + 1; c++) {
|
||||
ownedAddressesHashmap[this._getBIP47Address(pc, c)] = true;
|
||||
}
|
||||
}
|
||||
// hack: in case this code is called from LegacyWallet:
|
||||
if (this.getAddress()) ownedAddressesHashmap[String(this.getAddress())] = true;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue