This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nc -w 3 $1 $2 >/dev/null | |
if [ $? -ne 0 ] | |
then | |
echo "/ip4/$1/tcp/$2" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import sys | |
import json | |
import socket | |
#Script to generate 'peer sync' command based on currently elected + reachable nodes | |
#Change the miner binary name here | |
MINER_NAME="miner1" | |
#Function to check connectivity |