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

This commit is contained in:
Olaoluwa Osuntokun 2017-02-07 19:55:49 -08:00
parent e8e53a4b91
commit a9078562ac
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -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)
}
}