aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2017-10-05 13:35:20 -0400
committerCarl Dong <accounts@carldong.me>2019-01-16 13:54:18 -0500
commit2e56702ecedd83c4b7cb8de9de5c437c8c08e645 (patch)
tree8ceb655d5556a7b97a6362d1940e5b8ae0a307e0 /src/init.cpp
parent4c0d961eb0d7825a1e6f8389d7f5545114ee18c6 (diff)
downloadbitcoin-2e56702ecedd83c4b7cb8de9de5c437c8c08e645.tar.xz
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/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 86b39c34ea..ded157d49e 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>(&uiInterface);
+ g_banman = MakeUnique<BanMan>(GetDataDir() / "banlist.dat", &uiInterface);
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())));