rpc: add blockchain disk size to getinfo

This should help new nodes predict how much disk space will be
needed for a full sync
This commit is contained in:
moneromooo-monero 2018-06-17 22:07:15 +01:00
parent 9a3712541e
commit e5592c4bab
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
6 changed files with 26 additions and 1 deletions

View file

@ -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; }