aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorDaniel Edgecumbe <[email protected]>2017-09-21 00:52:20 +0100
committerPatrick Lodder <[email protected]>2020-07-24 18:45:39 +0200
commit59dcceea58529c10e3d9eecec92fd3c854350afa (patch)
treedbad0caae9e743eb0d720f1fe6104ab7e21bde24 /src/validation.h
parentMerge pull request #1636 from patricklodder/1.14-fix-tests (diff)
downloaddiscoin-59dcceea58529c10e3d9eecec92fd3c854350afa.tar.xz
discoin-59dcceea58529c10e3d9eecec92fd3c854350afa.zip
[backport] [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. Rebase-from: bitcoin#b7dfc6c4
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h
index de986e972..fb4f3982e 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -285,6 +285,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();
+
/**
* Prune block and undo files (blk???.dat and undo???.dat) so that the disk space used is less than a user-defined target.
* The user sets the target (in MB) on the command line or in config file. This will be run on startup and whenever new