From 43547f88ec502fce6f843db26b2116cd63409f4f Mon Sep 17 00:00:00 2001 From: opendansor Date: Mon, 9 Sep 2024 12:45:37 -0700 Subject: [PATCH] Fix default wait flags in stake script. Removed unnecessary "store_true" actions from `--wait_for_inclusion` and `--wait_for_finalization` flags in multiple argument parsers. This change ensures proper default behavior without requiring explicit action parameters. --- bittensor/commands/stake.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bittensor/commands/stake.py b/bittensor/commands/stake.py index eff415d1a..dc18efd0b 100644 --- a/bittensor/commands/stake.py +++ b/bittensor/commands/stake.py @@ -735,14 +735,12 @@ def add_args(parser: argparse.ArgumentParser): set_childkey_take_parser.add_argument( "--wait_for_inclusion", dest="wait_for_inclusion", - action="store_true", default=True, help="""Wait for the transaction to be included in a block.""", ) set_childkey_take_parser.add_argument( "--wait_for_finalization", dest="wait_for_finalization", - action="store_true", default=True, help="""Wait for the transaction to be finalized.""", ) @@ -1053,14 +1051,12 @@ def add_args(parser: argparse.ArgumentParser): set_children_parser.add_argument( "--wait_for_inclusion", dest="wait_for_inclusion", - action="store_true", default=True, help="""Wait for the transaction to be included in a block.""", ) set_children_parser.add_argument( "--wait_for_finalization", dest="wait_for_finalization", - action="store_true", default=True, help="""Wait for the transaction to be finalized.""", )