TCPServer: use steady_clock for bans

This commit is contained in:
SChernykh
2022-02-21 18:41:36 +01:00
parent c56773d4d6
commit f082488e4b
4 changed files with 16 additions and 11 deletions
+3 -2
View File
@@ -111,7 +111,7 @@ public:
int m_listenPort;
time_t m_prevIncomingPeerListRequest;
time_t m_nextOutgoingPeerListRequest;
uint64_t m_nextOutgoingPeerListRequest;
std::chrono::system_clock::time_point m_lastPeerListRequestTime;
int m_peerListPendingRequests;
int64_t m_pingTime;
@@ -176,7 +176,8 @@ private:
PoolBlock* m_block;
uv_timer_t m_timer;
uint32_t m_timerCounter;
uint64_t m_timerCounter;
uint64_t m_timerInterval;
uint64_t m_peerId;