Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 649 Lines • ▼ Show 20 Lines | struct ProofRelay { | ||||
mutable RecursiveMutex cs_proof_inventory; | mutable RecursiveMutex cs_proof_inventory; | ||||
std::set<avalanche::ProofId> | std::set<avalanche::ProofId> | ||||
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> | std::unique_ptr< | ||||
deadalnix: Stop wrapping that tree in a smart pointer. I don't know why you want to do that, just don't. | |||||
RadixTree<const avalanche::Proof, avalanche::ProofRadixTreeAdapter>> | |||||
sharedProofs; | sharedProofs; | ||||
std::atomic<bool> compactproofs_requested{false}; | 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 { | ||||
▲ Show 20 Lines • Show All 850 Lines • Show Last 20 Lines |
Stop wrapping that tree in a smart pointer. I don't know why you want to do that, just don't. If there is a problem fix it.