P2PServer: fixed ever growing memory usage

This commit is contained in:
SChernykh
2021-10-17 10:48:09 +02:00
parent 3bc03e4801
commit a06f4dcdcd
2 changed files with 16 additions and 17 deletions

View File

@@ -115,8 +115,8 @@ public:
time_t m_lastBroadcastTimestamp;
time_t m_lastBlockrequestTimestamp;
uv_rwlock_t m_broadcastedHashesLock;
std::set<hash> m_broadcastedHashes;
hash m_broadcastedHashes[8];
std::atomic<uint32_t> m_broadcastedHashesIndex{ 0 };
};
void broadcast(const PoolBlock& block);