Skip to content
Snippets Groups Projects
Commit 387fc1c7 authored by Jake Taylor's avatar Jake Taylor
Browse files

fix checking network settings on startup

parent 36823d52
No related branches found
No related tags found
2 merge requests!10Release,!8fix checking network settings on startup
......@@ -29,7 +29,6 @@ from OpenSSL import crypto
from substrateinterface import SubstrateInterface
import hashlib
########################################################################################################################
# Blockchain Updates
########################################################################################################################
......@@ -145,7 +144,8 @@ def poll_ready(substrate):
params=[era, val]
)
except Exception as e:
log.error(f"Connection lost while in \'substrate.query(\"Staking\", \"ErasValidatorPrefs\", [{era}, {val}])\'. Error: %s" % e)
log.error(
f"Connection lost while in \'substrate.query(\"Staking\", \"ErasValidatorPrefs\", [{era}, {val}])\'. Error: %s" % e)
return
cmix_root = data.value['cmix_root']
......@@ -994,7 +994,8 @@ def main():
current_hash = current_hashes.get(
management_directory, "0000000000000000000000000000000000000000000000000000000000000000")
if new_hash != current_hash:
log.info("{} update required: {} -> {}".format(management_directory, current_hash, new_hash))
log.info(
"{} update required: {} -> {}".format(management_directory, current_hash, new_hash))
# Stop the process
terminate_process(process)
# Get local destination path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment