mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-17 02:57:33 +02:00
Merge #8865: Decouple peer-processing-logic from block-connection-logic
a9aec5cUse BlockChecked signal to send reject messages from mapBlockSource (Matt Corallo)7565e03Remove SyncWithWallets wrapper function (Matt Corallo)12ee1feAlways call UpdatedBlockTip, even if blocks were only disconnected (Matt Corallo)f5efa28Remove CConnman parameter from ProcessNewBlock/ActivateBestChain (Matt Corallo)fef1010Use CValidationInterface from chain logic to notify peer logic (Matt Corallo)aefcb7bMove net-processing logic definitions together in main.h (Matt Corallo)0278fb5Remove duplicate nBlocksEstimate cmp (we already checked IsIBD()) (Matt Corallo)87e7d72Make validationinterface.UpdatedBlockTip more verbose (Matt Corallo)
This commit is contained in:
@@ -1317,7 +1317,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()) {
|
||||
@@ -1355,7 +1355,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