Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 5,476 Lines • ▼ Show 20 Lines | auto addInvAndMaybeFlush = [&](uint32_t type, const uint256 &hash) { | ||||
if (pto->m_proof_relay->filterProofKnown.contains( | if (pto->m_proof_relay->filterProofKnown.contains( | ||||
proofid)) { | proofid)) { | ||||
continue; | continue; | ||||
} | } | ||||
pto->m_proof_relay->filterProofKnown.insert(proofid); | pto->m_proof_relay->filterProofKnown.insert(proofid); | ||||
addInvAndMaybeFlush(MSG_AVA_PROOF, proofid); | addInvAndMaybeFlush(MSG_AVA_PROOF, proofid); | ||||
State(pto->GetId()) | |||||
->m_recently_announced_proofs.insert(proofid); | |||||
} | } | ||||
} | } | ||||
} | } | ||||
if (pto->m_tx_relay != nullptr) { | if (pto->m_tx_relay != nullptr) { | ||||
LOCK(pto->m_tx_relay->cs_tx_inventory); | LOCK(pto->m_tx_relay->cs_tx_inventory); | ||||
// Check whether periodic sends should happen | // Check whether periodic sends should happen | ||||
const bool fSendTrickle = | const bool fSendTrickle = | ||||
▲ Show 20 Lines • Show All 414 Lines • Show Last 20 Lines |