diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2017-10-05 13:35:20 -0400 |
---|---|---|
committer | Carl Dong <accounts@carldong.me> | 2019-01-16 13:54:18 -0500 |
commit | 2e56702ecedd83c4b7cb8de9de5c437c8c08e645 (patch) | |
tree | 8ceb655d5556a7b97a6362d1940e5b8ae0a307e0 /src/addrdb.h | |
parent | 4c0d961eb0d7825a1e6f8389d7f5545114ee18c6 (diff) |
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/addrdb.h')
-rw-r--r-- | src/addrdb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/addrdb.h b/src/addrdb.h index 90eca44bdb..88da31a6fc 100644 --- a/src/addrdb.h +++ b/src/addrdb.h @@ -92,9 +92,9 @@ public: class CBanDB { private: - fs::path pathBanlist; + const fs::path m_ban_list_path; public: - CBanDB(); + explicit CBanDB(fs::path ban_list_path); bool Write(const banmap_t& banSet); bool Read(banmap_t& banSet); }; |