You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a tracking issue of things that should be improved in our P2P address book:
Don't replace addresses unless unreachable
We should not replace peers in either peer list (white or gray) unless they are unreachable, this should reduce an attackers ability to fill our peer list.
We should set up a task that periodically pulls unused peers from either the gray or white lists and attempts to ping them to see if they are reachable. If they are not we will keep them removed from the address book. When a new addresses come in they should only be added if there is space in the address book.
This is a tracking issue of things that should be improved in our P2P address book:
Don't replace addresses unless unreachable
We should not replace peers in either peer list (white or gray) unless they are unreachable, this should reduce an attackers ability to fill our peer list.
We should set up a task that periodically pulls unused peers from either the gray or white lists and attempts to ping them to see if they are reachable. If they are not we will keep them removed from the address book. When a new addresses come in they should only be added if there is space in the address book.
The function to ping peers:
cuprate/p2p/p2p-core/src/client/handshaker.rs
Line 195 in 4653ac5
Bucket addresses
We should use a bucket system like Bitcoin to store our p2p address, so that we guarantee a more diverse range of addresses.
Persist banned peers
Currently banned peers are forgotten on restarts, we should keep them in the
p2p_store
.The functions where the peer filer is saved and loaded:
cuprate/p2p/address-book/src/store.rs
Lines 24 to 55 in 4653ac5
These functions should be changed to allow the ban list to be stored as well:
cuprate/p2p/address-book/src/book.rs
Line 63 in 4653ac5
Properly implement an anchor system
TODO
The text was updated successfully, but these errors were encountered: