banman: pass in default ban time as a parameter

Removes the dependency on arg parsing.
This commit is contained in:
Cory Fields
2017-10-05 13:41:45 -04:00
committed by Carl Dong
parent 2e56702ece
commit d0469b2e93
5 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha
for (int i=0; i < nScriptCheckThreads-1; i++)
threadGroup.create_thread(&ThreadScriptCheck);
g_banman = MakeUnique<BanMan>(GetDataDir() / "banlist.dat", nullptr);
g_banman = MakeUnique<BanMan>(GetDataDir() / "banlist.dat", nullptr, DEFAULT_MISBEHAVING_BANTIME);
g_connman = MakeUnique<CConnman>(0x1337, 0x1337); // Deterministic randomness for tests.
}