Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | struct TxRelay { | ||||
Amount lastSentFeeFilter{Amount::zero()}; | Amount lastSentFeeFilter{Amount::zero()}; | ||||
int64_t nextSendTimeFeeFilter{0}; | int64_t nextSendTimeFeeFilter{0}; | ||||
}; | }; | ||||
// m_tx_relay == nullptr if we're not relaying transactions with this peer | // m_tx_relay == nullptr if we're not relaying transactions with this peer | ||||
std::unique_ptr<TxRelay> m_tx_relay; | std::unique_ptr<TxRelay> m_tx_relay; | ||||
struct ProofRelay { | struct ProofRelay { | ||||
mutable RecursiveMutex cs_filter; | |||||
mutable RecursiveMutex cs_proof_inventory; | mutable RecursiveMutex cs_proof_inventory; | ||||
CRollingBloomFilter filterInventoryKnown GUARDED_BY(cs_proof_inventory){ | CRollingBloomFilter filterInventoryKnown GUARDED_BY(cs_proof_inventory){ | ||||
50000, 0.000001}; | 50000, 0.000001}; | ||||
// Set of proof ids we still have to announce. | // Set of proof ids we still have to announce. | ||||
std::set<avalanche::ProofId> setInventoryProofsToSend; | std::set<avalanche::ProofId> setInventoryProofsToSend; | ||||
std::chrono::microseconds nNextInvSend{0}; | std::chrono::microseconds nNextInvSend{0}; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines |