diff options
| author | Pieter Wuille <[email protected]> | 2017-05-12 15:19:19 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-05-26 13:33:39 -0700 |
| commit | c3aa0c11947dfd82702df276d39bb7f748dd83a1 (patch) | |
| tree | 56b0c561bee4a5fcf9f6c54b85c9d1200569d718 /src/txdb.cpp | |
| parent | Remove/ignore tx version in utxo and undo (diff) | |
| download | discoin-c3aa0c11947dfd82702df276d39bb7f748dd83a1.tar.xz discoin-c3aa0c11947dfd82702df276d39bb7f748dd83a1.zip | |
Report on-disk size in gettxoutsetinfo
Diffstat (limited to 'src/txdb.cpp')
| -rw-r--r-- | src/txdb.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp index 76aab2398..f139384a2 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) { } |