mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
0f3534656f
Previously we would try to send three random TCP relays that we're connected to to each friend once every 5 minutes. The problem with this method is that it could take an extraordinarily long time to share every relay; some relays might be consistently skipped while others might be sent repeatedly. Moreover, there's no guarantee that the nodes you try to send are actually online. This leads to a prety unreliable and flaky way of sharing. Now we reduce the timer to two minutes, and cycle through the list trying 3 nodes each share attempt. This guarantees that every online node in our list gets shared with every friend after a fixed amount of time (which depends on how many nodes are in the list) |
||
---|---|---|
.. | ||
Dockerfile | ||
get-nodes.py | ||
tox-bootstrapd.sha256 | ||
update-sha256 |