|
|
@ -1616,7 +1616,8 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
|
|
|
|
// Special case for the genesis block, skipping connection of its transactions
|
|
|
|
// Special case for the genesis block, skipping connection of its transactions
|
|
|
|
// (its coinbase is unspendable)
|
|
|
|
// (its coinbase is unspendable)
|
|
|
|
if (block.GetHash() == Params().HashGenesisBlock()) {
|
|
|
|
if (block.GetHash() == Params().HashGenesisBlock()) {
|
|
|
|
view.SetBestBlock(pindex->GetBlockHash());
|
|
|
|
if (!fJustCheck)
|
|
|
|
|
|
|
|
view.SetBestBlock(pindex->GetBlockHash());
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|