diff --git a/src/txdb.cpp b/src/txdb.cpp index 7059dd6f8..24ab0b4b5 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -217,7 +217,7 @@ bool CBlockTreeDB::WriteBatchSync(const std::vector& blockinfo) { - CLevelDBBatch batch; + CDBBatch batch(*this); for (std::vector::const_iterator it=blockinfo.begin(); it != blockinfo.end(); it++) { batch.Erase(make_pair(DB_BLOCK_INDEX, (*it)->GetBlockHash())); }