aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin.cpp
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2017-10-05 13:41:45 -0400
committerCarl Dong <accounts@carldong.me>2019-01-16 13:54:18 -0500
commitd0469b2e9386a7a4b268cb9725347e7517acace6 (patch)
tree77e13e31bd2204de782afafe03c1e71203392c71 /src/test/test_bitcoin.cpp
parent2e56702ecedd83c4b7cb8de9de5c437c8c08e645 (diff)
downloadbitcoin-d0469b2e9386a7a4b268cb9725347e7517acace6.tar.xz
banman: pass in default ban time as a parameter
Removes the dependency on arg parsing.
Diffstat (limited to 'src/test/test_bitcoin.cpp')
-rw-r--r--src/test/test_bitcoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp
index 7bce74b46b..75bd8db67e 100644
--- a/src/test/test_bitcoin.cpp
+++ b/src/test/test_bitcoin.cpp
@@ -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.
}