We need an automateable way to test seeds. This script takes in nodes_<main|test>.txt and outputs peers that
it successfully connected to.
This script is useful for verifying that newly added seeds are viable.
This script may also be used to determine general "health" of the seeds list by calculating the fraction of nodes
that can be successfully connected to at any point in time:
TOTAL=$(cat nodes_main.txt | wc -l) NUM=$(./test-seeds.sh < nodes_main.txt | wc -l) echo "scale=3; $NUM / $TOTAL" | bc
With additional automation, the seeds could be updated automatically whenever the above fraction drops below
a certain threshold. More testing will be necessary to pick a sane number.