diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-11-27 13:26:57 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-11-27 13:29:54 +0100 |
| commit | 5ca149a3db4a9f4e5ea93353494b40f2f1713e76 (patch) | |
| tree | 16bcbe5588de1b0e98635e2e8d8e824a63f45935 /src/test/test_bitcoin.cpp | |
| parent | Merge pull request #6871 (diff) | |
| parent | Globals: Remove a bunch of Params() calls from main.cpp: (diff) | |
| download | discoin-5ca149a3db4a9f4e5ea93353494b40f2f1713e76.tar.xz discoin-5ca149a3db4a9f4e5ea93353494b40f2f1713e76.zip | |
Merge pull request #7053
2e29e7e Globals: Remove a bunch of Params() calls from main.cpp: (Jorge Timón)
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 9a3517a27..2fe190f88 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -51,6 +51,7 @@ BasicTestingSetup::~BasicTestingSetup() TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(chainName) { + const CChainParams& chainparams = Params(); #ifdef ENABLE_WALLET bitdb.MakeMock(); #endif @@ -61,7 +62,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha pblocktree = new CBlockTreeDB(1 << 20, true); pcoinsdbview = new CCoinsViewDB(1 << 23, true); pcoinsTip = new CCoinsViewCache(pcoinsdbview); - InitBlockIndex(); + InitBlockIndex(chainparams); #ifdef ENABLE_WALLET bool fFirstRun; pwalletMain = new CWallet("wallet.dat"); |