Remove redundant chainparams declaration

main.cpp
This commit is contained in:
lateminer
2018-10-23 23:30:04 +03:00
parent 1b70520ceb
commit 7e41e6974f

View File

@@ -2840,7 +2840,6 @@ void static UpdateTip(CBlockIndex *pindexNew, const CChainParams& chainParams) {
/** Disconnect chainActive's tip. You probably want to call mempool.removeForReorg and manually re-limit mempool size after this, with cs_main held. */
bool static DisconnectTip(CValidationState& state, const CChainParams& chainparams)
{
const CChainParams& chainparams = Params(); // TODO replace consensusParams parameter
CBlockIndex *pindexDelete = chainActive.Tip();
assert(pindexDelete);
// Read block from disk.