aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/txdb.cpp')
-rw-r--r--src/txdb.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp
index 76aab23983..f139384a22 100644
--- a/src/txdb.cpp
+++ b/src/txdb.cpp
@@ -67,6 +67,11 @@ bool CCoinsViewDB::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) {
return db.WriteBatch(batch);
}
+size_t CCoinsViewDB::EstimateSize() const
+{
+ return db.EstimateSize(DB_COINS, (char)(DB_COINS+1));
+}
+
CBlockTreeDB::CBlockTreeDB(size_t nCacheSize, bool fMemory, bool fWipe) : CDBWrapper(GetDataDir() / "blocks" / "index", nCacheSize, fMemory, fWipe) {
}