From d9c70f5a08bdef67a1cb65985d79ee0bab7d259b 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 17b96ea74..1bebf3426 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1251,6 +1251,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; }