Closed LuKks closed 4 years ago
I think it would be more flexible to add a peer validator function that returns true/false instead of the whitelist. Makes this a bit more flexible
Is that ok? I actually tought exactly what you say but for some reason I had choosen similar behaviour than discovery-swarm.
Yea looks good I think. Was trying to fix the tests yesterday but will try testing this manually
Landed in master
Closes the second item of https://github.com/hyperswarm/hyperswarm/issues/44#issuecomment-557799041