aboutsummaryrefslogtreecommitdiff
path: root/src/coins.h
diff options
context:
space:
mode:
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;
};