assertion in CBlock::SetBestChainInner was too strong

This commit is contained in:
Pieter Wuille 2012-03-20 16:41:36 +01:00
parent 4ac3eea027
commit 9aa459b294
1 changed files with 1 additions and 2 deletions

View File

@ -1457,10 +1457,9 @@ runCommand(std::string strCommand)
printf("runCommand error: system(%s) returned %d\n", strCommand.c_str(), nErr);
}
// Called from inside SetBestChain: attaches a block to the new best chain being built
bool CBlock::SetBestChainInner(CTxDB& txdb, CBlockIndex *pindexNew)
{
assert(pindexNew->pprev == pindexBest);
uint256 hash = GetHash();
// Adding to current best branch