Peer list refactoring

- Remove peers that weren't seen for > 1 hour
- Better peer selection algorithm for PEER_LIST_RESPONSE
This commit is contained in:
SChernykh
2021-10-15 11:32:01 +02:00
parent 9e90e988fa
commit 9b86f8e81f
2 changed files with 54 additions and 24 deletions

View File

@@ -169,6 +169,7 @@ private:
raw_ip m_addr;
int m_port;
uint32_t m_numFailedConnections;
time_t m_lastSeen;
};
std::vector<Peer> m_peerList;