aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-15 17:10:49 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-15 17:10:49 -0500
commitdf064eaa36774248b35df09f88be6721e217206b (patch)
treedaf11400f588121333477312701d9f62d30dd759 /src/rpc/core_rpc_server.h
parentMerge pull request #5637 (diff)
parentBans for RPC connections (diff)
downloadmonero-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.h3
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;
};
}