Skip to content

Commit

Permalink
refactor: Drop no longer used CNetMsgMaker instances
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Mar 30, 2023
1 parent 8e7179a commit ea7ec78
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2439,8 +2439,6 @@ arith_uint256 PeerManagerImpl::GetAntiDoSWorkThreshold()
void PeerManagerImpl::HandleFewUnconnectingHeaders(CNode& pfrom, Peer& peer,
const std::vector<CBlockHeader>& headers)
{
const CNetMsgMaker msgMaker(pfrom.GetCommonVersion());

LOCK(cs_main);
CNodeState *nodestate = State(pfrom.GetId());

Expand Down Expand Up @@ -4938,7 +4936,6 @@ void PeerManagerImpl::ConsiderEviction(CNode& pto, Peer& peer, std::chrono::seco
AssertLockHeld(cs_main);

CNodeState &state = *State(pto.GetId());
const CNetMsgMaker msgMaker(pto.GetCommonVersion());

if (!state.m_chain_sync.m_protect && pto.IsOutboundOrBlockRelayConn() && state.fSyncStarted) {
// This is an outbound peer subject to disconnection if they don't
Expand Down

0 comments on commit ea7ec78

Please sign in to comment.