This function is called from the RPC code for pruneblockchain */
| 4552 | |
| 4553 | /* This function is called from the RPC code for pruneblockchain */ |
| 4554 | void PruneBlockFilesManual(Chainstate& active_chainstate, int nManualPruneHeight) |
| 4555 | { |
| 4556 | BlockValidationState state; |
| 4557 | if (!active_chainstate.FlushStateToDisk( |
| 4558 | state, FlushStateMode::NONE, nManualPruneHeight)) { |
| 4559 | LogWarning("Failed to flush state after manual prune (%s)", state.ToString()); |
| 4560 | } |
| 4561 | } |
| 4562 | |
| 4563 | bool Chainstate::LoadChainTip() |
| 4564 | { |
no test coverage detected