File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 5
5
#ifndef BITCOIN_BANMAN_H
6
6
#define BITCOIN_BANMAN_H
7
7
8
- #include < cstdint>
9
- #include < memory>
10
-
11
8
#include < addrdb.h>
12
9
#include < fs.h>
13
10
#include < net_types.h> // For banmap_t
14
11
#include < sync.h>
15
12
13
+ #include < chrono>
14
+ #include < cstdint>
15
+ #include < memory>
16
+
16
17
// NOTE: When adjusting this, update rpcnet:setban's help ("24h")
17
18
static constexpr unsigned int DEFAULT_MISBEHAVING_BANTIME = 60 * 60 * 24 ; // Default 24-hour ban
19
+ // How often to dump addresses to banlist.dat
20
+ static constexpr std::chrono::minutes DUMP_BANS_INTERVAL{15 };
18
21
19
22
class CClientUIInterface ;
20
23
class CNetAddr ;
Original file line number Diff line number Diff line change @@ -86,10 +86,6 @@ static const bool DEFAULT_PROXYRANDOMIZE = true;
86
86
static const bool DEFAULT_REST_ENABLE = false ;
87
87
static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false ;
88
88
89
- // How often to dump addresses to banlist.dat
90
- static constexpr std::chrono::minutes DUMP_BANS_INTERVAL{15 };
91
-
92
-
93
89
#ifdef WIN32
94
90
// Win32 LevelDB doesn't use filedescriptors, and the ones used for
95
91
// accessing block files don't count towards the fd_set size limit
You can’t perform that action at this time.
0 commit comments