Skip to content

Commit

Permalink
Use correct error name in handleGetRawTransaction.
Browse files Browse the repository at this point in the history
This commit corrects the error check from the createTxRawResult call in
handleGetRawTransaction.  It was previously given a different name which
resulted in the wrong error being checked.

Fixes #196.
  • Loading branch information
davecgh committed Dec 22, 2014
1 parent f1cbd40 commit 3354604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpcserver.go
Expand Up @@ -2413,11 +2413,11 @@ func handleGetRawTransaction(s *rpcServer, cmd btcjson.Cmd, closeChan <-chan str
}
}

rawTxn, jsonErr := createTxRawResult(s.server.netParams, c.Txid, mtx,
rawTxn, err := createTxRawResult(s.server.netParams, c.Txid, mtx,
blk, maxidx, blksha)
if err != nil {
rpcsLog.Errorf("Cannot create TxRawResult for txSha=%s: %v", txSha, err)
return nil, jsonErr
return nil, err
}
return *rawTxn, nil
}
Expand Down

0 comments on commit 3354604

Please sign in to comment.