diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:47:41 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:47:41 -0500 |
| commit | 1880c1a58290cde589fe6db1062284ddba294483 (patch) | |
| tree | 896c03bef52795675c79bbd421b8f47c5fab869e /src/daemon/rpc_command_executor.h | |
| parent | 97ffc6dabdcd12be221d1f710d346d99f55f8ea8 (diff) | |
| parent | 65c40049633f0c5db3c24af8716bb683520f368c (diff) | |
| download | monzero-core-1880c1a58290cde589fe6db1062284ddba294483.tar.gz monzero-core-1880c1a58290cde589fe6db1062284ddba294483.tar.xz monzero-core-1880c1a58290cde589fe6db1062284ddba294483.zip | |
Merge pull request #5363
515ac29 p2p: store network address directly in blocked host list (moneromooo-monero)
65c4004 allow blocking whole subnets (moneromooo-monero)
Diffstat (limited to 'src/daemon/rpc_command_executor.h')
| -rw-r--r-- | src/daemon/rpc_command_executor.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/daemon/rpc_command_executor.h b/src/daemon/rpc_command_executor.h index df2894d09..61c25736d 100644 --- a/src/daemon/rpc_command_executor.h +++ b/src/daemon/rpc_command_executor.h @@ -137,9 +137,11 @@ public: bool print_bans(); - bool ban(const std::string &ip, time_t seconds); + bool ban(const std::string &address, time_t seconds); - bool unban(const std::string &ip); + bool unban(const std::string &address); + + bool banned(const std::string &address); bool flush_txpool(const std::string &txid); |
