aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeffro256 <jeffro256@tutanota.com>2023-03-17 18:18:06 -0500
committerjeffro256 <jeffro256@tutanota.com>2023-03-17 18:18:06 -0500
commit4e16559053e5234933ae0893e9fe0ea2e2733640 (patch)
tree1ead7991fa140c652ce679f3549a67337c20e25f
parentMerge pull request #8737 (diff)
downloadmonero-4e16559053e5234933ae0893e9fe0ea2e2733640.tar.xz
rpc: give reason when sending non-hex raw tx
-rw-r--r--src/rpc/core_rpc_server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index c6d105fb4..53bb15177 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -1250,6 +1250,7 @@ namespace cryptonote
{
LOG_PRINT_L0("[on_send_raw_tx]: Failed to parse tx from hexbuff: " << req.tx_as_hex);
res.status = "Failed";
+ res.reason = "Hex decoding failed";
return true;
}