txmempool: Make entry time type-safe (std::chrono)

This commit is contained in:
MarcoFalke
2019-09-18 13:31:59 -04:00
parent faaa1f01da
commit faec689bed
6 changed files with 16 additions and 15 deletions

View File

@@ -761,7 +761,7 @@ public:
// Used for BIP35 mempool sending
bool fSendMempool GUARDED_BY(cs_tx_inventory){false};
// Last time a "MEMPOOL" request was serviced.
std::atomic<int64_t> timeLastMempoolReq{0};
std::atomic<std::chrono::seconds> m_last_mempool_req{std::chrono::seconds{0}};
int64_t nNextInvSend{0};
CCriticalSection cs_feeFilter;