mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Pass CChainParams to DisconnectTip()
This commit is contained in:
@@ -928,7 +928,7 @@ UniValue invalidateblock(const UniValue& params, bool fHelp)
|
||||
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Block not found");
|
||||
|
||||
CBlockIndex* pblockindex = mapBlockIndex[hash];
|
||||
InvalidateBlock(state, Params().GetConsensus(), pblockindex);
|
||||
InvalidateBlock(state, Params(), pblockindex);
|
||||
}
|
||||
|
||||
if (state.IsValid()) {
|
||||
|
||||
Reference in New Issue
Block a user