Browse Source
Update CBlockTreeDB::EraseBatchSync for dbwrapper refactor
pull/4/head
Jack Grigg
6 years ago
No known key found for this signature in database
GPG Key ID: 665DBCD284F7DAFF
1 changed files with
1 additions and
1 deletions
-
src/txdb.cpp
|
|
@ -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())); |
|
|
|
} |
|
|
|