mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-28 08:25:59 +01:00
Add a ForceSetArg method for testing
This commit is contained in:
@@ -19,8 +19,6 @@
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
extern std::map<std::string, std::string> mapArgs;
|
||||
|
||||
static UniValue rpcNestedTest_rpc(const JSONRPCRequest& request)
|
||||
{
|
||||
if (request.fHelp) {
|
||||
@@ -47,7 +45,7 @@ void RPCNestedTests::rpcNestedTests()
|
||||
std::string path = QDir::tempPath().toStdString() + "/" + strprintf("test_bitcoin_qt_%lu_%i", (unsigned long)GetTime(), (int)(GetRand(100000)));
|
||||
QDir dir(QString::fromStdString(path));
|
||||
dir.mkpath(".");
|
||||
mapArgs["-datadir"] = path;
|
||||
ForceSetArg("-datadir", path);
|
||||
//mempool.setSanityCheck(1.0);
|
||||
pblocktree = new CBlockTreeDB(1 << 20, true);
|
||||
pcoinsdbview = new CCoinsViewDB(1 << 23, true);
|
||||
|
||||
Reference in New Issue
Block a user