mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 05:49:11 +01:00
Assert ConnectBlock block and pIndex are the same block
This commit is contained in:
parent
972714c956
commit
4d51e9be16
@ -1739,7 +1739,10 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
|
||||
CCoinsViewCache& view, const CChainParams& chainparams, bool fJustCheck)
|
||||
{
|
||||
AssertLockHeld(cs_main);
|
||||
|
||||
assert(pindex);
|
||||
// pindex->phashBlock can be null if called by CreateNewBlock/TestBlockValidity
|
||||
assert((pindex->phashBlock == NULL) ||
|
||||
(*pindex->phashBlock == block.GetHash()));
|
||||
int64_t nTimeStart = GetTimeMicros();
|
||||
|
||||
// Check it again in case a previous version let a bad block in
|
||||
|
Loading…
Reference in New Issue
Block a user