Merge pull request #7943

3a90be4 rpc: don't set error code as status string (selsta)
This commit is contained in:
luigi1111 2021-11-30 17:00:20 -05:00
commit 55fc2335a4
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -2935,7 +2935,7 @@ namespace cryptonote
{
if (req.limit_down != -1)
{
res.status = CORE_RPC_ERROR_CODE_WRONG_PARAM;
res.status = "Invalid parameter";
return true;
}
epee::net_utils::connection_basic::set_rate_down_limit(nodetool::default_limit_down);
@ -2949,7 +2949,7 @@ namespace cryptonote
{
if (req.limit_up != -1)
{
res.status = CORE_RPC_ERROR_CODE_WRONG_PARAM;
res.status = "Invalid parameter";
return true;
}
epee::net_utils::connection_basic::set_rate_up_limit(nodetool::default_limit_up);