diff options
| author | Cory Fields <[email protected]> | 2017-10-05 13:35:20 -0400 |
|---|---|---|
| committer | Carl Dong <[email protected]> | 2019-01-16 13:54:18 -0500 |
| commit | 2e56702ecedd83c4b7cb8de9de5c437c8c08e645 (patch) | |
| tree | 8ceb655d5556a7b97a6362d1940e5b8ae0a307e0 /src/test/test_bitcoin.cpp | |
| parent | banman: create and split out banman (diff) | |
| download | discoin-2e56702ecedd83c4b7cb8de9de5c437c8c08e645.tar.xz discoin-2e56702ecedd83c4b7cb8de9de5c437c8c08e645.zip | |
banman: pass the banfile path in
There's no need to hard-code the path here. Passing it in means that there are
no ordering concerns wrt establishing the datadir.
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 6d1f70f9a..7bce74b46 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>(nullptr); + g_banman = MakeUnique<BanMan>(GetDataDir() / "banlist.dat", nullptr); g_connman = MakeUnique<CConnman>(0x1337, 0x1337); // Deterministic randomness for tests. } |