Open draeder opened 3 years ago
This is good. Nice work 🎉
Thanks.. It still needs work. I plan to soon release v2 which will eliminate the need for a swarm ID. All tracker-swarm nodes will participate in a global tracker swarm. When a peer with a new topic needs trackers, it will be given a set of random working trackers. When another peer for that topic joins, it will be given the same list of trackers, but if the list is short because some of the trackers have dropped (bad trackers), it will be given new random trackers as a replacement for the void. Kind of like how DHT works, sort of. I probably will need to submit a PR for P2PT, because it's all based on the infohash, and P2PT doesn't expose the infohash before announcing to trackers.
I created the following package that lets anyone create a tracker server and subsequent tracker server swarm around a shared application name: tracker-swarm. I built this to solve problems with unresponsive public tracker servers. I've tested deployments in Heroku and remixes on Glitch, and it seems to be working pretty well. It should work with P2PT. I've only tested with Bugout so far.