diff options
author | mrbandrews <bandrewsny@gmail.com> | 2016-11-29 12:39:19 -0500 |
---|---|---|
committer | mrbandrews <bandrewsny@gmail.com> | 2017-01-10 08:14:50 -0500 |
commit | 1fc4ec7bf224748d3d6271bffa23d121f015cbf3 (patch) | |
tree | a726cadbb46e5e41932be2f06477a145f16df911 /src/validation.h | |
parent | 5754e0341b7c033d4caf99534aca47e9981bd7ed (diff) |
Add pruneblockchain RPC to enable manual block file pruning.
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h index 631602a701..f5e76c7d31 100644 --- a/src/validation.h +++ b/src/validation.h @@ -309,6 +309,8 @@ CBlockIndex * InsertBlockIndex(uint256 hash); void FlushStateToDisk(); /** Prune block files and flush state to disk. */ void PruneAndFlush(); +/** Prune block files up to a given height */ +void PruneBlockFilesManual(int nPruneUpToHeight); /** (try to) add transaction to memory pool **/ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransactionRef &tx, bool fLimitFree, |