From 0d46977dcb263dfc3b37d8647cd6af13a16dad1d Mon Sep 17 00:00:00 2001 From: evgeny-stakewise <123374581+evgeny-stakewise@users.noreply.github.com> Date: Thu, 22 Aug 2024 09:47:59 +0300 Subject: [PATCH] Use disable_deposit_data_warnings in remote-db (#397) --- src/remote_db/tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/remote_db/tasks.py b/src/remote_db/tasks.py index efe3d559..3504d29e 100644 --- a/src/remote_db/tasks.py +++ b/src/remote_db/tasks.py @@ -71,8 +71,9 @@ async def upload_keypairs(db_url: str, b64_encrypt_key: str) -> None: with open(settings.deposit_data_file, 'r', encoding='utf-8') as f: deposit_data: list[dict] = json.load(f) - deposit_data_tree, _ = generate_validators_tree(settings.vault, deposit_data) - await check_deposit_data_root(deposit_data_tree.root) + if not settings.disable_deposit_data_warnings: + deposit_data_tree, _ = generate_validators_tree(settings.vault, deposit_data) + await check_deposit_data_root(deposit_data_tree.root) click.echo(f'Loading keystores from {settings.keystores_dir}...') keystore = await LocalKeystore.load()