From 4e16559053e5234933ae0893e9fe0ea2e2733640 Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Fri, 17 Mar 2023 18:18:06 -0500 Subject: [PATCH] rpc: give reason when sending non-hex raw tx --- src/rpc/core_rpc_server.cpp | 1 + 1 file changed, 1 insertion(+) 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; }