mirror of
https://github.com/monero-project/monero.git
synced 2024-12-26 03:39:25 -05:00
rpc: don't set error code as status string
This commit is contained in:
parent
a39b1d56c8
commit
3a90be4bd6
@ -2849,7 +2849,7 @@ namespace cryptonote
|
|||||||
{
|
{
|
||||||
if (req.limit_down != -1)
|
if (req.limit_down != -1)
|
||||||
{
|
{
|
||||||
res.status = CORE_RPC_ERROR_CODE_WRONG_PARAM;
|
res.status = "Invalid parameter";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
epee::net_utils::connection_basic::set_rate_down_limit(nodetool::default_limit_down);
|
epee::net_utils::connection_basic::set_rate_down_limit(nodetool::default_limit_down);
|
||||||
@ -2863,7 +2863,7 @@ namespace cryptonote
|
|||||||
{
|
{
|
||||||
if (req.limit_up != -1)
|
if (req.limit_up != -1)
|
||||||
{
|
{
|
||||||
res.status = CORE_RPC_ERROR_CODE_WRONG_PARAM;
|
res.status = "Invalid parameter";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
epee::net_utils::connection_basic::set_rate_up_limit(nodetool::default_limit_up);
|
epee::net_utils::connection_basic::set_rate_up_limit(nodetool::default_limit_up);
|
||||||
|
Loading…
Reference in New Issue
Block a user