lnwallet/btcwallet: fix bug in ordering of change vs regular addresses
This commit is contained in:
parent
e8e53a4b91
commit
a9078562ac
@ -207,9 +207,9 @@ func (b *BtcWallet) NewAddress(t lnwallet.AddressType, change bool) (btcutil.Add
|
|||||||
}
|
}
|
||||||
|
|
||||||
if change {
|
if change {
|
||||||
return b.wallet.NewAddress(defaultAccount, addrType)
|
|
||||||
} else {
|
|
||||||
return b.wallet.NewChangeAddress(defaultAccount, addrType)
|
return b.wallet.NewChangeAddress(defaultAccount, addrType)
|
||||||
|
} else {
|
||||||
|
return b.wallet.NewAddress(defaultAccount, addrType)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user