diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-01-02 17:35:36 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-01-02 17:35:45 +0100 |
| commit | 40d65eb66d0865aa64c410c3eb970dafcad71851 (patch) | |
| tree | 841e424200570715a0402714c2add3ca1ccaed78 /src/main.cpp | |
| parent | Remove declaration of no longer existent CheckWork (diff) | |
| parent | Bugfix: ConnectBlock: In case the genesis block gets in with fJustCheck, beha... (diff) | |
| download | discoin-40d65eb66d0865aa64c410c3eb970dafcad71851.tar.xz discoin-40d65eb66d0865aa64c410c3eb970dafcad71851.zip | |
Merge pull request #5580
1b178a7 Bugfix: ConnectBlock: In case the genesis block gets in with fJustCheck, behave correctly (Luke Dashjr)
228d238 Make CCoinsViewCache's copy constructor private (Luke Dashjr)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5c0f0116d..675b8afd1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1718,7 +1718,8 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin // Special case for the genesis block, skipping connection of its transactions // (its coinbase is unspendable) if (block.GetHash() == Params().HashGenesisBlock()) { - view.SetBestBlock(pindex->GetBlockHash()); + if (!fJustCheck) + view.SetBestBlock(pindex->GetBlockHash()); return true; } |