From c85a3a29e3e76e9d58b997fc197d6a73f6e76aae Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Mon, 7 Oct 2013 22:22:47 -0400 Subject: [PATCH] 'err != nil' -> 'err == nil', fixes getaddressesbyaccount --- wallet/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/wallet.go b/wallet/wallet.go index 86f913b..d6b0501 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -721,7 +721,7 @@ func (w *Wallet) GetActiveAddresses() []string { addr := w.addrMap[*addr160] addrstr, err := addr.paymentAddress(w.net) // TODO(jrick): propigate error - if err != nil { + if err == nil { addrs = append(addrs, addrstr) } }