Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 972 Lines • ▼ Show 20 Lines | struct TxRelay { | ||||
GUARDED_BY(cs_filter){nullptr}; | GUARDED_BY(cs_filter){nullptr}; | ||||
mutable RecursiveMutex cs_tx_inventory; | mutable RecursiveMutex cs_tx_inventory; | ||||
CRollingBloomFilter filterInventoryKnown GUARDED_BY(cs_tx_inventory){ | CRollingBloomFilter filterInventoryKnown GUARDED_BY(cs_tx_inventory){ | ||||
50000, 0.000001}; | 50000, 0.000001}; | ||||
// Set of transaction ids we still have to announce. | // Set of transaction ids we still have to announce. | ||||
// They are sorted by the mempool before relay, so the order is not | // They are sorted by the mempool before relay, so the order is not | ||||
// important. | // important. | ||||
std::set<TxId> setInventoryTxToSend; | std::set<TxId> setInventoryTxToSend GUARDED_BY(cs_tx_inventory); | ||||
// Used for BIP35 mempool sending | // Used for BIP35 mempool sending | ||||
bool fSendMempool GUARDED_BY(cs_tx_inventory){false}; | bool fSendMempool GUARDED_BY(cs_tx_inventory){false}; | ||||
// Last time a "MEMPOOL" request was serviced. | // Last time a "MEMPOOL" request was serviced. | ||||
std::atomic<std::chrono::seconds> m_last_mempool_req{ | std::atomic<std::chrono::seconds> m_last_mempool_req{ | ||||
std::chrono::seconds{0}}; | std::chrono::seconds{0}}; | ||||
std::chrono::microseconds nNextInvSend{0}; | std::chrono::microseconds nNextInvSend{0}; | ||||
RecursiveMutex cs_feeFilter; | RecursiveMutex cs_feeFilter; | ||||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |