Add pruneblockchain RPC to enable manual block file pruning.

This commit is contained in:
mrbandrews
2016-11-29 12:39:19 -05:00
parent 5754e0341b
commit 1fc4ec7bf2
8 changed files with 207 additions and 24 deletions

View File

@@ -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,