diff options
| author | Pieter Wuille <[email protected]> | 2014-09-24 03:19:04 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-24 03:19:04 +0200 |
| commit | 7c70438dc67547e83953ba0343a071fae304ce65 (patch) | |
| tree | 88683dd773ad889a630e5262b5051e85262c6bdc /src/miner.cpp | |
| parent | Add coins_tests with a large randomized CCoinViewCache test. (diff) | |
| download | discoin-7c70438dc67547e83953ba0343a071fae304ce65.tar.xz discoin-7c70438dc67547e83953ba0343a071fae304ce65.zip | |
Get rid of the dummy CCoinsViewCache constructor arg
Diffstat (limited to 'src/miner.cpp')
| -rw-r--r-- | src/miner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index d05ddbeb1..010ee844a 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -116,7 +116,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) { LOCK2(cs_main, mempool.cs); CBlockIndex* pindexPrev = chainActive.Tip(); - CCoinsViewCache view(*pcoinsTip, true); + CCoinsViewCache view(pcoinsTip); // Priority order to process transactions list<COrphan> vOrphan; // list memory doesn't move @@ -316,7 +316,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) CBlockIndex indexDummy(*pblock); indexDummy.pprev = pindexPrev; indexDummy.nHeight = pindexPrev->nHeight + 1; - CCoinsViewCache viewNew(*pcoinsTip, true); + CCoinsViewCache viewNew(pcoinsTip); CValidationState state; if (!ConnectBlock(*pblock, state, &indexDummy, viewNew, true)) throw std::runtime_error("CreateNewBlock() : ConnectBlock failed"); |