ZeroNetJS / zeronet-js

ZeroNet in JS
MIT License
49 stars 9 forks source link

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

Closed danimesq closed 7 years ago

danimesq commented 7 years ago

Reference: https://github.com/HelloZeroNet/ZeroNet/issues/1016.

danimesq commented 7 years ago

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

danimesq commented 7 years ago

Reference: https://github.com/HelloZeroNet/ZeroNet/issues/1036.

mkg20001 commented 7 years ago

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

danimesq commented 7 years ago

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

mkg20001 commented 7 years ago

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.

danimesq commented 7 years ago

Amazing. I updated the title of this issue.

mkg20001 commented 7 years ago

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