lnwallet/btcwallet: fix bug in ordering of change vs regular addresses
This commit is contained in:
1 file changed
+2
-2
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user