aboutsummaryrefslogtreecommitdiff
path: root/src/chain.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-11-25 16:26:20 +0100
committerPieter Wuille <pieter.wuille@gmail.com>2014-11-25 16:26:35 +0100
commit63d1ae5556ea40dde0cca20addda4bba40005496 (patch)
tree84300b58849b139c71381704d54f640ffff694f7 /src/chain.h
parentac0b2393a447bb20f8b0489a67237c98a1cfff4a (diff)
Do all block index writes in a batch
Diffstat (limited to 'src/chain.h')
-rw-r--r--src/chain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chain.h b/src/chain.h
index c01240665d..e76d5a3d9a 100644
--- a/src/chain.h
+++ b/src/chain.h
@@ -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);
}