git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4ac3eea
)
assertion in CBlock::SetBestChainInner was too strong
author
Pieter Wuille
<pieter.wuille@gmail.com>
Tue, 20 Mar 2012 15:41:36 +0000 (16:41 +0100)
committer
Pieter Wuille
<pieter.wuille@gmail.com>
Tue, 20 Mar 2012 15:41:36 +0000 (16:41 +0100)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
1b56cea
..
1209f6e
100644
(file)
--- 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