Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 651 Lines • ▼ Show 20 Lines | struct ProofRelay { | ||||
setInventoryProofToSend GUARDED_BY(cs_proof_inventory); | setInventoryProofToSend GUARDED_BY(cs_proof_inventory); | ||||
// Prevent sending proof invs if the peer already knows about them | // Prevent sending proof invs if the peer already knows about them | ||||
CRollingBloomFilter filterProofKnown GUARDED_BY(cs_proof_inventory){ | CRollingBloomFilter filterProofKnown GUARDED_BY(cs_proof_inventory){ | ||||
10000, 0.000001}; | 10000, 0.000001}; | ||||
std::chrono::microseconds nextInvSend{0}; | std::chrono::microseconds nextInvSend{0}; | ||||
RadixTree<const avalanche::Proof, avalanche::ProofRadixTreeAdapter> | RadixTree<const avalanche::Proof, avalanche::ProofRadixTreeAdapter> | ||||
sharedProofs; | sharedProofs; | ||||
std::atomic<bool> compactproofs_requested{false}; | |||||
}; | }; | ||||
// m_proof_relay == nullptr if we're not relaying proofs with this peer | // m_proof_relay == nullptr if we're not relaying proofs with this peer | ||||
const std::unique_ptr<ProofRelay> m_proof_relay; | const std::unique_ptr<ProofRelay> m_proof_relay; | ||||
class AvalancheState { | class AvalancheState { | ||||
/** | /** | ||||
* The inventories polled and voted couters since last score | * The inventories polled and voted couters since last score | ||||
▲ Show 20 Lines • Show All 848 Lines • Show Last 20 Lines |