-
Notifications
You must be signed in to change notification settings - Fork 458
Improve peers to db efficiency #104
Comments
first guess is to remove this and include this function in some "strategic" router.get function. I think on receiving blocks could be a good start. |
linked to #135 @karmacoma The removed list stores as well the date of removal and a score (like how many times it has been removed). The time and score tells you can retest to connect the peer after score*60s (example) after the last removal. This way bad peers don't pop up often in the networks. If finally the peer is connected, the peer can be removed from the removed list or maybe the score decreased... |
@karmacoma some codes have been implemented (the list of peers that have been removed). Not sure there are some more strategic implementation to improve things? Also maybe move on to the issue to prevent "lite client" from being recorded to the database. |
- Replacing insert / update with single upsert. - Chaining database queries when adding dapp peer.
DoS attack leads to exhaust node's memory, P2P layer - Closes #104
Currently peers information is separately inserted / updated on every API request hitting the transport module. Under heavy loads, this becomes very inefficient.
The text was updated successfully, but these errors were encountered: