From 64309fb382424ac7fb3acf4497f25c69fb8094d9 Mon Sep 17 00:00:00 2001 From: Sam Kozin Date: Wed, 10 Mar 2021 22:13:37 +0300 Subject: [PATCH] rename FORCE flag to discourage its use --- app/oracle.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/oracle.py b/app/oracle.py index 8e5d7a107..36b059b41 100644 --- a/app/oracle.py +++ b/app/oracle.py @@ -59,7 +59,7 @@ await_time_in_sec = int(os.getenv('SLEEP', DEFAULT_SLEEP)) run_as_daemon = int(os.getenv('DAEMON', 0)) -force = int(os.getenv('FORCE', 0)) +force = int(os.getenv('FORCE_DO_NOT_USE_IN_PRODUCTION', 0)) dry_run = member_privkey is None @@ -141,7 +141,7 @@ logging.info('DAEMON=0 Running in single iteration mode (will exit after reporting).') if force: - logging.info('FORCE=1 Running in enforced mode.') + logging.info('FORCE_DO_NOT_USE_IN_PRODUCTION=1 Running in enforced mode.') logging.warning("In enforced mode TX gets always sent even if it looks suspicious. NEVER use it in production!") logging.info(f'ETH1_NODE={eth1_provider}') @@ -229,7 +229,7 @@ def prompt(prompt_message, prompt_end): else: logging.warning('Cannot report suspicious data in DAEMON mode for safety reasons.') logging.warning('You can submit it interactively (with DAEMON=0) and interactive [y/n] prompt.') - logging.warning("In DAEMON mode it's possible with enforcement flag (FORCE=1). Never use it in production.") + logging.warning("In DAEMON mode it's possible with enforcement flag (FORCE_DO_NOT_USE_IN_PRODUCTION=1). Never use it in production.") else: sign_and_send_tx(tx) else: