Browse Source

fix detection of loose addresses in AddressInfo.loadInfoExtended()

umbrel
kenshin-samourai 5 years ago
parent
commit
13b99f5597
  1. 9
      lib/wallet/address-info.js

9
lib/wallet/address-info.js

@ -65,9 +65,12 @@ class AddressInfo {
this.path = ['M', info.hdAddrChain, info.hdAddrIndex].join('/')
}
if (res.loose.indexOf(this.address) > -1) {
this.tracked = true
this.type = 'loose'
for (let a of res.loose) {
if (a.addrAddress == this.address) {
this.tracked = true
this.type = 'loose'
break
}
}
return this.loadInfo()

Loading…
Cancel
Save