Fix xpub addresses path for non standard descriptors
This commit is contained in:
parent
da34069d24
commit
ca3a023493
@ -556,7 +556,7 @@ func (w *Worker) GetXpubAddress(xpub string, page int, txsOnPage int, option Acc
|
||||
usedTokens++
|
||||
}
|
||||
if option > AccountDetailsBasic {
|
||||
token := w.tokenFromXpubAddress(data, ad, ci, i, option)
|
||||
token := w.tokenFromXpubAddress(data, ad, int(xd.ChangeIndexes[ci]), i, option)
|
||||
if filter.TokensToReturn == TokensToReturnDerived ||
|
||||
filter.TokensToReturn == TokensToReturnUsed && ad.balance != nil ||
|
||||
filter.TokensToReturn == TokensToReturnNonzeroBalance && ad.balance != nil && !IsZeroBigInt(&ad.balance.BalanceSat) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user