ZeroNetJS/zeronet-js

Lower the peers score by 20 every time an error response is returned

danimesq opened this issue ยท 8 comments

Lower the peers score by 20 every time an error response is returned

Also, automatically change to another peer when a peer is sending the site with missing files.

Also, automatically change to another peer when a peer is sending the site with missing files.

This is already being done here

Automatically block peers that are returning 404

Instead we could use a peer score system and lower the peers score by 20 every time an error response is returned.
Peers with less then -100 points will be blocked then

But if the peer use the same Tor IP of others, then all users of a relay will be blocked?

But if the peer use the same Tor IP of others, then all users of a relay will be blocked?

You can't expose your ip via a tor exit node.
Additionally the client would only block the onion address not the relays in between.

Amazing.
I updated the title of this issue.

I will fix this during the rewrite of the discovery stuff, etc. See #91