From eed4c0937d6d05fd5e00a2197288c1cacd2cc719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=BA=C3=B1ez?= Date: Mon, 29 Jul 2019 12:29:39 +0200 Subject: [PATCH] Make ursula CLI ask for worker account password --- nucypher/cli/characters/ursula.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/nucypher/cli/characters/ursula.py b/nucypher/cli/characters/ursula.py index 8122cb650..79a574fb5 100644 --- a/nucypher/cli/characters/ursula.py +++ b/nucypher/cli/characters/ursula.py @@ -26,7 +26,11 @@ from nucypher.blockchain.eth.registry import EthereumContractRegistry from nucypher.blockchain.eth.utils import datetime_at_period from nucypher.characters.banners import URSULA_BANNER from nucypher.cli import actions, painting -from nucypher.cli.actions import get_nucypher_password, select_client_account +from nucypher.cli.actions import ( + get_nucypher_password, + select_client_account, + get_client_password +) from nucypher.cli.config import nucypher_click_config from nucypher.cli.processes import UrsulaCommandProtocol from nucypher.cli.types import ( @@ -247,13 +251,18 @@ def ursula(click_config, # # Make Ursula # - + # TODO: OH MY INDEED + client_password = None + if not ursula_config.federated_only: + if not dev and not click_config.json_ipc: + client_password = get_client_password(checksum_address=ursula_config.worker_address) URSULA = actions.make_cli_character(character_config=ursula_config, click_config=click_config, min_stake=min_stake, teacher_uri=teacher_uri, dev=dev, - lonely=lonely) + lonely=lonely, + client_password=client_password) # # Authenticated Action Switch