mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Merge #7916: Explicitly pass CChainParams& to DisconnectTip()
176869fExplicitly pass CChainParams to ConnectBlock (face)d0a6353Pass CChainParams to DisconnectTip() (face)764d237Globals: Explicitly pass const CChainParams& to UpdateTip() (Jorge Timón)
This commit is contained in:
@@ -942,7 +942,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