diff --git a/src/validation.cpp b/src/validation.cpp index 6a5e790490ae6..3b9fc3bacf1b3 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -2095,19 +2095,6 @@ bool static ConnectTip(CValidationState& state, CBlockIndex* pindexNew, const st return true; } -bool DisconnectBlocks(int nBlocks, const CChainParams& chainparams) -{ - LOCK(cs_main); - - CValidationState state; - - LogPrintf("%s: Got command to replay %d blocks\n", __func__, nBlocks); - for (int i = 0; i <= nBlocks; i++) - DisconnectTip(state, chainparams); - - return true; -} - /** * Return the tip of the chain with the most work in it, that isn't * known to be invalid (it's however far from certain to be valid). diff --git a/src/validation.h b/src/validation.h index 62761aac77f84..ffc624cf6bac0 100644 --- a/src/validation.h +++ b/src/validation.h @@ -329,9 +329,6 @@ bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex); * of problems. Note that in any case, coins may be modified. */ bool DisconnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex, CCoinsViewCache& coins, bool* pfClean = NULL); -/** Reprocess a number of blocks to try and get on the correct chain again **/ -bool DisconnectBlocks(int nBlocks, const CChainParams& chainparams); - /** Apply the effects of this block (with given index) on the UTXO set represented by coins */ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pindex, CCoinsViewCache& coins, bool fJustCheck, bool fAlreadyChecked = false);