Commit Graph

6 Commits

Author SHA1 Message Date
fccview b88de139d7 Merge pull request #17 from kiliantyler/feat/lru-cache
Merging so we can fix conflicts before the chat MR, this looks good to me and works fine
2026-01-03 07:42:08 +00:00
lklynet a37f282c23 feat(p2p): I added a connection rotation and limited max connections
Implement connection rotation to periodically close oldest connections when exceeding half of MAX_CONNECTIONS. Also enforce MAX_CONNECTIONS limit by rejecting new connections when limit is reached (32). This improves network stability and resource management.

I also changed max relay hops from 3 to 2.

With the connection rotation I think these more conservative numbers should suffice and save on resources.
2026-01-02 22:02:27 -05:00
Kilian Tyler 66e197f77e feat(config): Increase max peer limit 2026-01-02 20:21:47 -05:00
Kilian Tyler 629183c82e feat(peers): Implement LRU and unique peer count 2026-01-02 20:13:07 -05:00
Fernando Campione 38db5374bc fix conflicts and create a class for Hyperloglog to keep with the refactored architecture 2026-01-02 20:59:11 +00:00
Fernando Campione b5b646a68f Ehm.. refactor much? sorry 2026-01-02 20:35:17 +00:00