mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Remove CConnman parameter from ProcessNewBlock/ActivateBestChain
This commit is contained in:
@@ -1279,7 +1279,7 @@ UniValue invalidateblock(const UniValue& params, bool fHelp)
|
||||
}
|
||||
|
||||
if (state.IsValid()) {
|
||||
ActivateBestChain(state, Params(), NULL, g_connman.get());
|
||||
ActivateBestChain(state, Params(), NULL);
|
||||
}
|
||||
|
||||
if (!state.IsValid()) {
|
||||
@@ -1317,7 +1317,7 @@ UniValue reconsiderblock(const UniValue& params, bool fHelp)
|
||||
}
|
||||
|
||||
CValidationState state;
|
||||
ActivateBestChain(state, Params(), NULL, g_connman.get());
|
||||
ActivateBestChain(state, Params(), NULL);
|
||||
|
||||
if (!state.IsValid()) {
|
||||
throw JSONRPCError(RPC_DATABASE_ERROR, state.GetRejectReason());
|
||||
|
||||
Reference in New Issue
Block a user