fix typo - now addresses show up in getrawtransaction

This commit is contained in:
David Hill 2013-11-15 16:12:08 -05:00
parent 6b8c10d1fb
commit 7b7d4e8555

View file

@ -724,7 +724,7 @@ func handleGetRawTransaction(s *rpcServer, cmd btcjson.Cmd, walletNotification c
// TODO: set and return error?
log.Errorf("RPCS: Error getting address hash for %v: %v", txSha, err)
}
if addr, err := btcutil.EncodeAddress(addrhash, s.server.btcnet); err != nil {
if addr, err := btcutil.EncodeAddress(addrhash, s.server.btcnet); err == nil {
// TODO: set and return error?
addrList := make([]string, 1)
addrList[0] = addr