mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Merge #8085: p2p: Begin encapsulation
0103c5bnet: move MAX_FEELER_CONNECTIONS into connman (Cory Fields)e700cd0Convert ForEachNode* functions to take a templated function argument rather than a std::function to eliminate std::function overhead (Jeremy Rubin)d1a2295Made the ForEachNode* functions in src/net.cpp more pragmatic and self documenting (Jeremy Rubin)98591c5net: move vNodesDisconnected into CConnman (Cory Fields)fa2f8bcnet: add nSendBufferMaxSize/nReceiveFloodSize to CConnection::Options (Cory Fields)a19553bnet: Introduce CConnection::Options to avoid passing so many params (Cory Fields)bafa5fcnet: Drop StartNode/StopNode and use CConnman directly (Cory Fields)e81a602net: pass CClientUIInterface into CConnman (Cory Fields)f60b905net: Pass best block known height into CConnman (Cory Fields)fdf69ffnet: move max/max-outbound to CConnman (Cory Fields)8a59369net: move semOutbound to CConnman (Cory Fields)bd72937net: move nLocalServices/nRelevantServices to CConnman (Cory Fields)be9c796net: move SendBufferSize/ReceiveFloodSize to CConnman (Cory Fields)63cafa6net: move send/recv statistics to CConnman (Cory Fields)adf5d4cnet: SocketSendData returns written size (Cory Fields)ee44fa9net: move messageHandlerCondition to CConnman (Cory Fields)960cf2enet: move nLocalHostNonce to CConnman (Cory Fields)551e088net: move nLastNodeId to CConnman (Cory Fields)6c19d92net: move whitelist functions into CConnman (Cory Fields)53347f0net: create generic functor accessors and move vNodes to CConnman (Cory Fields)c0569c7net: Add most functions needed for vNodes to CConnman (Cory Fields)8ae2dacnet: move added node functions to CConnman (Cory Fields)502dd3anet: Add oneshot functions to CConnman (Cory Fields)a0f3d3cnet: move ban and addrman functions into CConnman (Cory Fields)aaf018enet: handle nodesignals in CConnman (Cory Fields)b1a5f43net: move OpenNetworkConnection into CConnman (Cory Fields)02137f1net: Move socket binding into CConnman (Cory Fields)5b446ddnet: Pass CConnection to wallet rather than using the global (Cory Fields)8d58c4dnet: Pass CConnman around as needed (Cory Fields)d7349canet: Add rpc error for missing/disabled p2p functionality (Cory Fields)cd16f48net: Create CConnman to encapsulate p2p connections (Cory Fields)d93b14dnet: move CBanDB and CAddrDB out of net.h/cpp (Cory Fields)531214fgui: add NodeID to the peer table (Cory Fields)
This commit is contained in:
@@ -1277,7 +1277,7 @@ UniValue invalidateblock(const UniValue& params, bool fHelp)
|
||||
}
|
||||
|
||||
if (state.IsValid()) {
|
||||
ActivateBestChain(state, Params());
|
||||
ActivateBestChain(state, Params(), NULL, g_connman.get());
|
||||
}
|
||||
|
||||
if (!state.IsValid()) {
|
||||
@@ -1315,7 +1315,7 @@ UniValue reconsiderblock(const UniValue& params, bool fHelp)
|
||||
}
|
||||
|
||||
CValidationState state;
|
||||
ActivateBestChain(state, Params());
|
||||
ActivateBestChain(state, Params(), NULL, g_connman.get());
|
||||
|
||||
if (!state.IsValid()) {
|
||||
throw JSONRPCError(RPC_DATABASE_ERROR, state.GetRejectReason());
|
||||
|
||||
Reference in New Issue
Block a user