diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2017-10-05 13:41:45 -0400 |
---|---|---|
committer | Carl Dong <accounts@carldong.me> | 2019-01-16 13:54:18 -0500 |
commit | d0469b2e9386a7a4b268cb9725347e7517acace6 (patch) | |
tree | 77e13e31bd2204de782afafe03c1e71203392c71 /src/init.cpp | |
parent | 2e56702ecedd83c4b7cb8de9de5c437c8c08e645 (diff) | |
download | bitcoin-d0469b2e9386a7a4b268cb9725347e7517acace6.tar.xz |
banman: pass in default ban time as a parameter
Removes the dependency on arg parsing.
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index ded157d49e..0f59dfbef5 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1296,7 +1296,7 @@ bool AppInitMain(InitInterfaces& interfaces) // need to reindex later. assert(!g_banman); - g_banman = MakeUnique<BanMan>(GetDataDir() / "banlist.dat", &uiInterface); + g_banman = MakeUnique<BanMan>(GetDataDir() / "banlist.dat", &uiInterface, gArgs.GetArg("-bantime", DEFAULT_MISBEHAVING_BANTIME)); assert(!g_connman); g_connman = std::unique_ptr<CConnman>(new CConnman(GetRand(std::numeric_limits<uint64_t>::max()), GetRand(std::numeric_limits<uint64_t>::max()))); |