Skip to content

Commit 9aa459b

Browse files
committed
assertion in CBlock::SetBestChainInner was too strong
1 parent 4ac3eea commit 9aa459b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,10 +1457,9 @@ runCommand(std::string strCommand)
14571457
printf("runCommand error: system(%s) returned %d\n", strCommand.c_str(), nErr);
14581458
}
14591459

1460+
// Called from inside SetBestChain: attaches a block to the new best chain being built
14601461
bool CBlock::SetBestChainInner(CTxDB& txdb, CBlockIndex *pindexNew)
14611462
{
1462-
assert(pindexNew->pprev == pindexBest);
1463-
14641463
uint256 hash = GetHash();
14651464

14661465
// Adding to current best branch

0 commit comments

Comments
 (0)