'err != nil' -> 'err == nil', fixes getaddressesbyaccount

This commit is contained in:
Josh Rickmar 2013-10-07 22:22:47 -04:00
parent f14d2edbff
commit c85a3a29e3

View file

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