mirror of https://github.com/nucypher/nucypher.git
Sets Ursula filename modifier to be the worker address instead of the staker address.
parent
b37a899c6b
commit
075d396069
|
@ -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,
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue