Skip to content

Commit fa36f3a

Browse files
author
MarcoFalke
committed
refactor: move DUMP_BANS_INTERVAL to banman.h
1 parent fadafb8 commit fa36f3a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/banman.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@
55
#ifndef BITCOIN_BANMAN_H
66
#define BITCOIN_BANMAN_H
77

8-
#include <cstdint>
9-
#include <memory>
10-
118
#include <addrdb.h>
129
#include <fs.h>
1310
#include <net_types.h> // For banmap_t
1411
#include <sync.h>
1512

13+
#include <chrono>
14+
#include <cstdint>
15+
#include <memory>
16+
1617
// NOTE: When adjusting this, update rpcnet:setban's help ("24h")
1718
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};
1821

1922
class CClientUIInterface;
2023
class CNetAddr;

src/init.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ static const bool DEFAULT_PROXYRANDOMIZE = true;
8686
static const bool DEFAULT_REST_ENABLE = false;
8787
static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false;
8888

89-
// How often to dump addresses to banlist.dat
90-
static constexpr std::chrono::minutes DUMP_BANS_INTERVAL{15};
91-
92-
9389
#ifdef WIN32
9490
// Win32 LevelDB doesn't use filedescriptors, and the ones used for
9591
// accessing block files don't count towards the fd_set size limit

0 commit comments

Comments
 (0)