From 9aa459b2947d2db3f09a6558fee80a444e1220bb Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 20 Mar 2012 16:41:36 +0100 Subject: assertion in CBlock::SetBestChainInner was too strong --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1b56cead3c..1209f6e568 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 -- cgit v1.2.3