add static nodes on every geth runtime

pull/1040/head
Kieran Prasch 2019-04-29 23:56:00 +03:00
parent 1b104cea9f
commit efee3d60e9
No known key found for this signature in database
GPG Key ID: 199AB839D4125A62
1 changed files with 5 additions and 0 deletions

View File

@ -179,4 +179,9 @@ class NuCypherGethDevnetProcess(NuCypherGethProcess):
return checksum_address
def start(self, *args, **kwargs):
# FIXME: Quick and Dirty
# Write static nodes file to data dir
bootnodes_filepath = os.path.join(DEPLOY_DIR, 'static-nodes.json')
shutil.copy(bootnodes_filepath, os.path.join(self.data_dir))
super().start()