aboutsummaryrefslogtreecommitdiff
path: root/src/coins.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-05-12 15:19:19 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-05-26 13:33:39 -0700
commitc3aa0c11947dfd82702df276d39bb7f748dd83a1 (patch)
tree56b0c561bee4a5fcf9f6c54b85c9d1200569d718 /src/coins.h
parentd342424301013ec47dc146a4beb49d5c9319d80a (diff)
Report on-disk size in gettxoutsetinfo
Diffstat (limited to 'src/coins.h')
-rw-r--r--src/coins.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/coins.h b/src/coins.h
index 12cfd6bf6b..47ef90114b 100644
--- a/src/coins.h
+++ b/src/coins.h
@@ -319,6 +319,9 @@ public:
//! As we use CCoinsViews polymorphically, have a virtual destructor
virtual ~CCoinsView() {}
+
+ //! Estimate database size (0 if not implemented)
+ virtual size_t EstimateSize() const { return 0; }
};
@@ -336,6 +339,7 @@ public:
void SetBackend(CCoinsView &viewIn);
bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock);
CCoinsViewCursor *Cursor() const;
+ size_t EstimateSize() const override;
};