diff options
author | Daniel Edgecumbe <esotericnonsense@danedgecumbe.com> | 2017-09-21 00:52:20 +0100 |
---|---|---|
committer | Daniel Edgecumbe <esotericnonsense@danedgecumbe.com> | 2017-09-29 19:40:50 +0100 |
commit | b7dfc6c4b89b62f9bb79ea009ee103a6299ac005 (patch) | |
tree | 46c129303778821e49b1bd11de55ab07c62a07cc /src/validation.h | |
parent | ff4cd6075b12fb32b9a906deea3ed033e3f9560a (diff) |
[rpc] getblockchaininfo: add size_on_disk, prune_target_size, automatic_pruning
Fix pruneheight help text.
Move fPruneMode block to match output ordering with help text.
Add functional tests for new fields in getblockchaininfo.
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h index c7ef556b47..75b897f3de 100644 --- a/src/validation.h +++ b/src/validation.h @@ -280,6 +280,9 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams); /** Guess verification progress (as a fraction between 0.0=genesis and 1.0=current tip). */ double GuessVerificationProgress(const ChainTxData& data, CBlockIndex* pindex); +/** Calculate the amount of disk space the block & undo files currently use */ +uint64_t CalculateCurrentUsage(); + /** * Mark one block file as pruned. */ |