diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-08-15 17:10:49 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-08-15 17:10:49 -0500 |
commit | df064eaa36774248b35df09f88be6721e217206b (patch) | |
tree | daf11400f588121333477312701d9f62d30dd759 /src/rpc/core_rpc_server.h | |
parent | Merge pull request #5637 (diff) | |
parent | Bans for RPC connections (diff) | |
download | monero-df064eaa36774248b35df09f88be6721e217206b.tar.xz |
Merge pull request #5649
a182df2 Bans for RPC connections (hyc)
Diffstat (limited to 'src/rpc/core_rpc_server.h')
-rw-r--r-- | src/rpc/core_rpc_server.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.h b/src/rpc/core_rpc_server.h index f697df485..e91d4c953 100644 --- a/src/rpc/core_rpc_server.h +++ b/src/rpc/core_rpc_server.h @@ -238,6 +238,7 @@ namespace cryptonote private: bool check_core_busy(); bool check_core_ready(); + bool add_host_fail(const connection_context *ctx); //utils uint64_t get_block_reward(const block& blk); @@ -258,6 +259,8 @@ private: bool m_was_bootstrap_ever_used; network_type m_nettype; bool m_restricted; + epee::critical_section m_host_fails_score_lock; + std::map<std::string, uint64_t> m_host_fails_score; }; } |