mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-24 22:45:41 +01:00
validation: Remove global ::ActivateBestChain
Instead use CChainState::ActivateBestChain, which is what the global one calls anyway.
This commit is contained in:
@@ -1603,7 +1603,7 @@ static RPCHelpMan invalidateblock()
|
||||
InvalidateBlock(state, Params(), pblockindex);
|
||||
|
||||
if (state.IsValid()) {
|
||||
ActivateBestChain(state, Params());
|
||||
::ChainstateActive().ActivateBestChain(state, Params());
|
||||
}
|
||||
|
||||
if (!state.IsValid()) {
|
||||
@@ -1643,7 +1643,7 @@ static RPCHelpMan reconsiderblock()
|
||||
}
|
||||
|
||||
BlockValidationState state;
|
||||
ActivateBestChain(state, Params());
|
||||
::ChainstateActive().ActivateBestChain(state, Params());
|
||||
|
||||
if (!state.IsValid()) {
|
||||
throw JSONRPCError(RPC_DATABASE_ERROR, state.ToString());
|
||||
|
||||
Reference in New Issue
Block a user