aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/blockchain_db.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-07-19 13:40:42 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-07-19 13:40:42 -0500
commit3e026ff6edbdf9e6c300ac737c4cccfaeafb0516 (patch)
tree79ade90cb3910733680ed6375015d8d27dba96d0 /src/blockchain_db/blockchain_db.h
parentMerge pull request #3981 (diff)
parentrpc: add blockchain disk size to getinfo (diff)
downloadmonero-3e026ff6edbdf9e6c300ac737c4cccfaeafb0516.tar.xz
Merge pull request #4013
e5592c4 rpc: add blockchain disk size to getinfo (moneromooo-monero)
Diffstat (limited to 'src/blockchain_db/blockchain_db.h')
-rw-r--r--src/blockchain_db/blockchain_db.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/blockchain_db/blockchain_db.h b/src/blockchain_db/blockchain_db.h
index d91d3d5fc..6851e2404 100644
--- a/src/blockchain_db/blockchain_db.h
+++ b/src/blockchain_db/blockchain_db.h
@@ -1565,6 +1565,13 @@ public:
*/
virtual bool is_read_only() const = 0;
+ /**
+ * @brief get disk space requirements
+ *
+ * @return the size required
+ */
+ virtual uint64_t get_database_size() const = 0;
+
// TODO: this should perhaps be (or call) a series of functions which
// progressively update through version updates
/**