Update CBlockTreeDB::EraseBatchSync for dbwrapper refactor

This commit is contained in:
Jack Grigg
2018-04-03 21:38:34 +01:00
parent 56aa25684c
commit 2d7bae5b33

View File

@@ -217,7 +217,7 @@ bool CBlockTreeDB::WriteBatchSync(const std::vector<std::pair<int, const CBlockF
}
bool CBlockTreeDB::EraseBatchSync(const std::vector<const CBlockIndex*>& blockinfo) {
CLevelDBBatch batch;
CDBBatch batch(*this);
for (std::vector<const CBlockIndex*>::const_iterator it=blockinfo.begin(); it != blockinfo.end(); it++) {
batch.Erase(make_pair(DB_BLOCK_INDEX, (*it)->GetBlockHash()));
}