[tools] update nNextInvSend to use mockable time

This commit is contained in:
Amiti Uttarwar
2019-10-30 15:37:35 -07:00
parent 4de630354f
commit 1a8f0d5a74
2 changed files with 7 additions and 5 deletions

View File

@@ -762,7 +762,7 @@ public:
bool fSendMempool GUARDED_BY(cs_tx_inventory){false};
// Last time a "MEMPOOL" request was serviced.
std::atomic<std::chrono::seconds> m_last_mempool_req{std::chrono::seconds{0}};
int64_t nNextInvSend{0};
std::chrono::microseconds nNextInvSend{0};
CCriticalSection cs_feeFilter;
// Minimum fee rate with which to filter inv's to this node