- Add new counter for total unique peers in dashboard UI
- Update command description to clarify default message scope
- Enhance README with new features and better organization
- Implement chat commands system with help menu and easter eggs
- Add context menu for whisper and block actions
- Improve terminal UI with resizer and styling enhancements
- Update chat message formatting and validation
- Clean up and refactor messaging code
Increase MAX_RELAY_HOPS from 2 to 5 for better message propagation. Update gossip algorithm to scale with connection count, using a minimum of 6 or 25% of eligible peers.
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.