diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2018-01-21 08:44:23 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2018-01-29 11:14:02 +1100 |
commit | 32c0f908cd753f9319909e2f43d2b4657ebaf664 (patch) | |
tree | 85af316f61c3e28b995ff8b97be8424be4992d3f /src/daemon/rpc_command_executor.h | |
parent | Rename delete_connections to delete_out_connections (diff) | |
download | monero-32c0f908cd753f9319909e2f43d2b4657ebaf664.tar.xz |
Allow the number of incoming connections to be limited
It was already possible to limit outgoing connections. One might want
to do this on home network connections with high bandwidth but low
usage caps.
Diffstat (limited to 'src/daemon/rpc_command_executor.h')
-rw-r--r-- | src/daemon/rpc_command_executor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.h b/src/daemon/rpc_command_executor.h index f0781180a..fa83d8988 100644 --- a/src/daemon/rpc_command_executor.h +++ b/src/daemon/rpc_command_executor.h @@ -122,7 +122,9 @@ public: bool set_limit(int64_t limit_down, int64_t limit_up); bool out_peers(uint64_t limit); - + + bool in_peers(uint64_t limit); + bool start_save_graph(); bool stop_save_graph(); |