Improve error return from sendrawtransaction.
Rather than simply returning "TX rejected" to the RPC client which submitted a sendrawtransaction that fails, include the reason the it failed.
This commit is contained in:
parent
7a885b3cf6
commit
e5afb5e984
1 changed files with 1 additions and 1 deletions
|
@ -1399,7 +1399,7 @@ func handleSendRawTransaction(s *rpcServer, cmd btcjson.Cmd) (interface{}, error
|
|||
}
|
||||
err = btcjson.Error{
|
||||
Code: btcjson.ErrDeserialization.Code,
|
||||
Message: "TX rejected",
|
||||
Message: fmt.Sprintf("TX rejected: %v", err),
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue