diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-03-10 09:58:49 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-03-10 09:52:53 -0400 |
commit | fa36f3a29538012a6eb5c3402b3b3c18fd32b230 (patch) | |
tree | 5624613e5a3e137b7031d94af12fcc83a1406dec /src/banman.h | |
parent | fadafb83cff9a9a340eac1b5a853e2467d5e0ef7 (diff) |
refactor: move DUMP_BANS_INTERVAL to banman.h
Diffstat (limited to 'src/banman.h')
-rw-r--r-- | src/banman.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/banman.h b/src/banman.h index 8984874914..6bea2e75e9 100644 --- a/src/banman.h +++ b/src/banman.h @@ -5,16 +5,19 @@ #ifndef BITCOIN_BANMAN_H #define BITCOIN_BANMAN_H -#include <cstdint> -#include <memory> - #include <addrdb.h> #include <fs.h> #include <net_types.h> // For banmap_t #include <sync.h> +#include <chrono> +#include <cstdint> +#include <memory> + // NOTE: When adjusting this, update rpcnet:setban's help ("24h") static constexpr unsigned int DEFAULT_MISBEHAVING_BANTIME = 60 * 60 * 24; // Default 24-hour ban +// How often to dump addresses to banlist.dat +static constexpr std::chrono::minutes DUMP_BANS_INTERVAL{15}; class CClientUIInterface; class CNetAddr; |