mirror of
https://github.com/monero-project/monero.git
synced 2026-01-14 05:46:37 -08:00
Merge pull request #2866
cf5f6236 Corrections in rate limiting / trottle code, especially in 'out' direction (rbrunner7)
This commit is contained in:
@@ -1549,7 +1549,7 @@ namespace cryptonote
|
||||
res.status = CORE_RPC_ERROR_CODE_WRONG_PARAM;
|
||||
return false;
|
||||
}
|
||||
epee::net_utils::connection_basic::set_rate_down_limit(nodetool::default_limit_down * 1024);
|
||||
epee::net_utils::connection_basic::set_rate_down_limit(nodetool::default_limit_down);
|
||||
}
|
||||
|
||||
if (req.limit_up > 0)
|
||||
@@ -1563,7 +1563,7 @@ namespace cryptonote
|
||||
res.status = CORE_RPC_ERROR_CODE_WRONG_PARAM;
|
||||
return false;
|
||||
}
|
||||
epee::net_utils::connection_basic::set_rate_up_limit(nodetool::default_limit_up * 1024);
|
||||
epee::net_utils::connection_basic::set_rate_up_limit(nodetool::default_limit_up);
|
||||
}
|
||||
|
||||
res.limit_down = epee::net_utils::connection_basic::get_rate_down_limit();
|
||||
|
||||
Reference in New Issue
Block a user