Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 1,696 Lines • ▼ Show 20 Lines | m_connman.ForEachNode([&](CNode *pnode) { | ||||
if (isAvalancheOutboundOrManual(pnode)) { | if (isAvalancheOutboundOrManual(pnode)) { | ||||
avanode_outbound_ids.push_back(pnode->GetId()); | avanode_outbound_ids.push_back(pnode->GetId()); | ||||
} | } | ||||
// If a proof radix tree timed out, cleanup | // If a proof radix tree timed out, cleanup | ||||
if (pnode->m_proof_relay && | if (pnode->m_proof_relay && | ||||
now > (pnode->m_proof_relay->lastSharedProofsUpdate.load() + | now > (pnode->m_proof_relay->lastSharedProofsUpdate.load() + | ||||
AVALANCHE_AVAPROOFS_TIMEOUT)) { | AVALANCHE_AVAPROOFS_TIMEOUT)) { | ||||
LogPrint(BCLog::AVALANCHE, | |||||
"Cleaning up timed out compact proofs from peer %d\n", | |||||
pnode->GetId()); | |||||
pnode->m_proof_relay->sharedProofs = {}; | pnode->m_proof_relay->sharedProofs = {}; | ||||
} | } | ||||
}); | }); | ||||
if (avanode_outbound_ids.empty()) { | if (avanode_outbound_ids.empty()) { | ||||
// Not node is available for messaging, retry later | // Not node is available for messaging, retry later | ||||
goto scheduleLater; | goto scheduleLater; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 5,401 Lines • Show Last 20 Lines |