This function is called from the RPC code for pruneblockchain */
| 5231 | |
| 5232 | /* This function is called from the RPC code for pruneblockchain */ |
| 5233 | void PruneBlockFilesManual(int nManualPruneHeight) |
| 5234 | { |
| 5235 | CValidationState state; |
| 5236 | if (!FlushStateToDisk(state, FLUSH_STATE_NONE, nManualPruneHeight)) { |
| 5237 | LogPrintf("%s: failed to flush state (%s)\n", __func__, FormatStateMessage(state)); |
| 5238 | } |
| 5239 | } |
| 5240 | |
| 5241 | |
| 5242 | /* Calculate the block/rev files to delete based on height specified by user with RPC command pruneblockchain */ |
no test coverage detected