mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* Remove a random address from the address manager if it's full. * Implement TestOverfillAddressManager. * Add connectionFailedCount to addresses. * Mark connection failures. * Mark connection successes. * Implement removing by most connection failures. * Expand TestOverfillAddressManager. * Add comments. * Use a better method for finding the address with the greatest connectionFailedCount. * Fix a comment. * Compare addresses by IP in TestOverfillAddressManager. * Add a comment for updateNotBanned. Co-authored-by: Ori Newman <orinewman1@gmail.com>