mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-20 13:53:15 +02:00
refactor: Drop no longer used CNetMsgMaker
instances
This commit is contained in:
parent
8e7179aa13
commit
ea7ec78087
@ -2439,8 +2439,6 @@ arith_uint256 PeerManagerImpl::GetAntiDoSWorkThreshold()
|
|||||||
void PeerManagerImpl::HandleFewUnconnectingHeaders(CNode& pfrom, Peer& peer,
|
void PeerManagerImpl::HandleFewUnconnectingHeaders(CNode& pfrom, Peer& peer,
|
||||||
const std::vector<CBlockHeader>& headers)
|
const std::vector<CBlockHeader>& headers)
|
||||||
{
|
{
|
||||||
const CNetMsgMaker msgMaker(pfrom.GetCommonVersion());
|
|
||||||
|
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
CNodeState *nodestate = State(pfrom.GetId());
|
CNodeState *nodestate = State(pfrom.GetId());
|
||||||
|
|
||||||
@ -4938,7 +4936,6 @@ void PeerManagerImpl::ConsiderEviction(CNode& pto, Peer& peer, std::chrono::seco
|
|||||||
AssertLockHeld(cs_main);
|
AssertLockHeld(cs_main);
|
||||||
|
|
||||||
CNodeState &state = *State(pto.GetId());
|
CNodeState &state = *State(pto.GetId());
|
||||||
const CNetMsgMaker msgMaker(pto.GetCommonVersion());
|
|
||||||
|
|
||||||
if (!state.m_chain_sync.m_protect && pto.IsOutboundOrBlockRelayConn() && state.fSyncStarted) {
|
if (!state.m_chain_sync.m_protect && pto.IsOutboundOrBlockRelayConn() && state.fSyncStarted) {
|
||||||
// This is an outbound peer subject to disconnection if they don't
|
// This is an outbound peer subject to disconnection if they don't
|
||||||
|
Loading…
x
Reference in New Issue
Block a user