Do all block index writes in a batch

This commit is contained in:
Pieter Wuille
2014-11-25 16:26:20 +01:00
parent ac0b2393a4
commit 63d1ae5556
4 changed files with 29 additions and 33 deletions

View File

@@ -293,7 +293,7 @@ public:
hashPrev = 0;
}
explicit CDiskBlockIndex(CBlockIndex* pindex) : CBlockIndex(*pindex) {
explicit CDiskBlockIndex(const CBlockIndex* pindex) : CBlockIndex(*pindex) {
hashPrev = (pprev ? pprev->GetBlockHash() : 0);
}