diff options
| author | Luke Dashjr <[email protected]> | 2014-12-31 03:28:05 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2014-12-31 03:28:05 +0000 |
| commit | 1b178a7f966cd3649b7f0a52ffc4b8ef4c227900 (patch) | |
| tree | a67b956df5df61ce7cf51fe58020371b7485047a /src/main.cpp | |
| parent | Make CCoinsViewCache's copy constructor private (diff) | |
| download | discoin-1b178a7f966cd3649b7f0a52ffc4b8ef4c227900.tar.xz discoin-1b178a7f966cd3649b7f0a52ffc4b8ef4c227900.zip | |
Bugfix: ConnectBlock: In case the genesis block gets in with fJustCheck, behave correctly
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 70e3973e6..7c5b7401e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1616,7 +1616,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; } |