diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-17 22:07:15 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-20 23:48:37 +0100 |
commit | e5592c4bab058e154f68858dcb41eed6c2f0f18a (patch) | |
tree | 7cd30dddbddb990145c0f2d9a48e9a2509ea2da4 /tests/unit_tests | |
parent | Merge pull request #3939 (diff) | |
download | monero-e5592c4bab058e154f68858dcb41eed6c2f0f18a.tar.xz |
rpc: add blockchain disk size to getinfo
This should help new nodes predict how much disk space will be
needed for a full sync
Diffstat (limited to 'tests/unit_tests')
-rw-r--r-- | tests/unit_tests/hardfork.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp index 913ebe84a..f206dd30e 100644 --- a/tests/unit_tests/hardfork.cpp +++ b/tests/unit_tests/hardfork.cpp @@ -124,6 +124,7 @@ public: virtual void remove_txpool_tx(const crypto::hash& txid) {} virtual bool get_txpool_tx_meta(const crypto::hash& txid, txpool_tx_meta_t &meta) const { return false; } virtual bool get_txpool_tx_blob(const crypto::hash& txid, cryptonote::blobdata &bd) const { return false; } + virtual uint64_t get_database_size() const { return 0; } virtual cryptonote::blobdata get_txpool_tx_blob(const crypto::hash& txid) const { return ""; } virtual bool for_all_txpool_txes(std::function<bool(const crypto::hash&, const txpool_tx_meta_t&, const cryptonote::blobdata*)>, bool include_blob = false, bool include_unrelayed_txes = false) const { return false; } |