diff options
author | Matt Corallo <git@bluematt.me> | 2016-12-24 11:28:44 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2016-12-27 13:52:07 +0100 |
commit | c2f61bebb190258753714b29ab2041e80651cec9 (patch) | |
tree | 5242c7209483c676c4549c61556fd5f86202bd2c /src/test/test_bitcoin.cpp | |
parent | 4e048142a5e45d622355dad92ade192ad4769ca3 (diff) |
Add a ForceSetArg method for testing
Diffstat (limited to 'src/test/test_bitcoin.cpp')
-rw-r--r-- | src/test/test_bitcoin.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index b62b317105..5c4ef5eb8c 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -33,8 +33,6 @@ std::unique_ptr<CConnman> g_connman; FastRandomContext insecure_rand_ctx(true); -extern std::map<std::string, std::string> mapArgs; - extern bool fPrintToConsole; extern void noui_connect(); @@ -66,7 +64,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha ClearDatadirCache(); pathTemp = GetTempPath() / strprintf("test_bitcoin_%lu_%i", (unsigned long)GetTime(), (int)(GetRand(100000))); boost::filesystem::create_directories(pathTemp); - mapArgs["-datadir"] = pathTemp.string(); + ForceSetArg("-datadir", pathTemp.string()); mempool.setSanityCheck(1.0); pblocktree = new CBlockTreeDB(1 << 20, true); pcoinsdbview = new CCoinsViewDB(1 << 23, true); |