mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
Bugfix: ConnectBlock: In case the genesis block gets in with fJustCheck, behave correctly
This commit is contained in:
parent
228d238525
commit
1b178a7f96
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user