lnwallet/btcwallet: fix bug in ordering of change vs regular addresses

This commit is contained in:
Olaoluwa Osuntokun committed 2017-02-07 19:55:54 -08:00
1 parent e8e53a4b91
commit a9078562ac
1 file changed
+2 -2
+2 -2
View File
@@ -207,9 +207,9 @@ func (b *BtcWallet) NewAddress(t lnwallet.AddressType, change bool) (btcutil.Add
}
if change {
return b.wallet.NewAddress(defaultAccount, addrType)
} else {
return b.wallet.NewChangeAddress(defaultAccount, addrType)
} else {
return b.wallet.NewAddress(defaultAccount, addrType)
}
}