aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2023-04-25 11:21:48 -0400
committerluigi1111 <luigi1111w@gmail.com>2023-04-25 11:21:48 -0400
commitb442d5d4c1aa49a03408ce2fc13ac7d5e2353812 (patch)
tree65d5fe213ef02ca33204886d8d61d23cc8747924 /src/rpc
parentMerge pull request #8771 (diff)
parentrpc: give reason when sending non-hex raw tx (diff)
downloadmonero-b442d5d4c1aa49a03408ce2fc13ac7d5e2353812.tar.xz
Merge pull request #8780
4e16559 rpc: give reason when sending non-hex raw tx (jeffro256)
Diffstat (limited to 'src/rpc')
-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 50a77cd8e..cb347110d 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -1313,6 +1313,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;
}