diff options
| author | mrbandrews <[email protected]> | 2016-11-29 12:39:19 -0500 |
|---|---|---|
| committer | mrbandrews <[email protected]> | 2017-01-10 08:14:50 -0500 |
| commit | 1fc4ec7bf224748d3d6271bffa23d121f015cbf3 (patch) | |
| tree | a726cadbb46e5e41932be2f06477a145f16df911 /src/validation.h | |
| parent | Merge #8811: rpc: Add support for JSON-RPC named arguments (diff) | |
| download | discoin-1fc4ec7bf224748d3d6271bffa23d121f015cbf3.tar.xz discoin-1fc4ec7bf224748d3d6271bffa23d121f015cbf3.zip | |
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 631602a70..f5e76c7d3 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, |