Use correct calls to tx.Sha() in RPC server.
This commit is contained in:
parent
70094fcee8
commit
470ef8c58e
1 changed files with 4 additions and 2 deletions
|
@ -611,9 +611,11 @@ func handleSendRawTransaction(s *rpcServer, cmd btcjson.Cmd, walletNotification
|
||||||
// so log it as such. Otherwise, something really did go wrong,
|
// so log it as such. Otherwise, something really did go wrong,
|
||||||
// so log it as an actual error.
|
// so log it as an actual error.
|
||||||
if _, ok := err.(TxRuleError); ok {
|
if _, ok := err.(TxRuleError); ok {
|
||||||
log.Debugf("RPCS: Rejected transaction %v: %v", txHash, err)
|
log.Debugf("RPCS: Rejected transaction %v: %v", tx.Sha(),
|
||||||
|
err)
|
||||||
} else {
|
} else {
|
||||||
log.Errorf("RPCS: Failed to process transaction %v: %v", txHash, err)
|
log.Errorf("RPCS: Failed to process transaction %v: %v",
|
||||||
|
tx.Sha(), err)
|
||||||
}
|
}
|
||||||
err = btcjson.Error{
|
err = btcjson.Error{
|
||||||
Code: btcjson.ErrDeserialization.Code,
|
Code: btcjson.ErrDeserialization.Code,
|
||||||
|
|
Loading…
Reference in a new issue