Bitsong
HomeActive peers
In order to get a list of active peers and insert them into the config, use the command
PEERS=$(curl http://bitsong.stakeme.io:26657/net_info?| jq -r '.result.peers | map(select(.node_info.listen_addr | startswith("tcp") | not) | .node_info.id + "@" + .node_info.listen_addr) | join(",")')
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.bitsongd/config/config.toml