Sets Ursula filename modifier to be the worker address instead of the staker address.

pull/1124/head
Kieran Prasch 2019-07-17 16:46:10 -07:00
parent b37a899c6b
commit 075d396069
No known key found for this signature in database
GPG Key ID: 199AB839D4125A62
2 changed files with 5 additions and 1 deletions

View File

@ -75,6 +75,10 @@ class UrsulaConfiguration(CharacterConfiguration):
base_filepaths.update(filepaths)
return base_filepaths
def generate_filepath(self, modifier: str = None, *args, **kwargs) -> str:
filepath = super().generate_filepath(modifier=modifier or self.worker_address, *args, **kwargs)
return filepath
def static_payload(self) -> dict:
payload = dict(
worker_address=self.worker_address,

View File

@ -168,7 +168,7 @@ class CharacterConfiguration(BaseConfiguration):
"""Shortcut: Hook-up a new initial installation and write configuration file to the disk"""
node_config = cls(dev_mode=False, *args, **kwargs)
node_config.initialize(password=password)
node_config.to_configuration_file(modifier=node_config.checksum_address)
node_config.to_configuration_file()
return node_config
def cleanup(self) -> None: