From a9078562ac71cd33649043148263d66c36da5cac Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 7 Feb 2017 19:55:49 -0800 Subject: [PATCH] lnwallet/btcwallet: fix bug in ordering of change vs regular addresses --- lnwallet/btcwallet/btcwallet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnwallet/btcwallet/btcwallet.go b/lnwallet/btcwallet/btcwallet.go index db6fe3db..6e9a929e 100644 --- a/lnwallet/btcwallet/btcwallet.go +++ b/lnwallet/btcwallet/btcwallet.go @@ -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) } }