rpc: give reason when sending non-hex raw tx

This commit is contained in:
jeffro256 2023-03-17 18:18:06 -05:00 committed by wowario
parent 8d7701a67d
commit d9c70f5a08
No known key found for this signature in database
GPG Key ID: 793504B449C69220
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}