Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bittensor_cli/src/commands/subnets/subnets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2323,7 +2323,7 @@ async def get_start_schedule(
print_error(f"Subnet {netuid} does not exist.")
return None
block_hash = await subtensor.substrate.get_chain_head()
registration_block, min_blocks_to_start, current_block = await asyncio.gather(
registration_block, min_blocks_to_start_, current_block = await asyncio.gather(
subtensor.query(
module="SubtensorModule",
storage_function="NetworkRegisteredAt",
Expand All @@ -2337,6 +2337,7 @@ async def get_start_schedule(
),
subtensor.substrate.get_block_number(block_hash=block_hash),
)
min_blocks_to_start = getattr(min_blocks_to_start_, "value", min_blocks_to_start_)

potential_start_block = registration_block + min_blocks_to_start
if current_block < potential_start_block:
Expand Down
Loading