You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 27, 2024. It is now read-only.
st = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
try:
st.connect(('10.255.255.255', 1))
ip = st.getsockname()[0]
except Exception:
raise Exception("ERROR: Could not get own IP address\n")
finally:
st.close()
return ip
def load_json(file):
if not os.path.exists(file):
raise Exception("ERROR: {} file does not exist. Please initialize first with the following command:\n\n\t./build/slush init validator --home ./valdata\n".format(file))
print("On the other non-validator computers do the following steps:")
print()
print("\t1. Initialize a non-validator node with the following command:")
print()
print("\t\t./build/slush init full --home ./valdata")
print()
print()
print("\t2. Copy the content of the valdata/config/genesis.json file from this validator node to the valdata/config folder of the other non-validator computer")