force claimtrie disk flush on exit

(not a problem before the cache size was increased)
This commit is contained in:
Brannon King 2019-05-28 14:16:50 -06:00
parent d1293d8e70
commit d712d342a9

View file

@ -970,7 +970,7 @@ bool CClaimTrie::WriteToDisk()
dirtySupportExpirationQueueRows.clear();
batch.Write(HASH_BLOCK, hashBlock);
batch.Write(CURRENT_HEIGHT, nCurrentHeight);
return db.WriteBatch(batch);
return db.WriteBatch(batch, true);
}
bool CClaimTrie::InsertFromDisk(const std::string& name, CClaimTrieNode* node)