Skip to content

Commit 370e0a0

Browse files
author
Roman
committed
add logging to wait_to_start_call
1 parent 1adaa20 commit 370e0a0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/e2e_tests/utils/e2e_test_utils.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ def wait_to_start_call(
237237
"""Waits for a certain number of blocks before making a start call."""
238238
if subtensor.is_fast_blocks() is False:
239239
in_blocks = 5
240+
bittensor.logging.console.info(
241+
f"Waiting for [blue]{in_blocks}[/blue] blocks before [red]start call[/red]. "
242+
f"Current block: [blue]{subtensor.block}[/blue]."
243+
)
240244

241245
# make sure we passed start_call limit
242246
subtensor.wait_for_block(subtensor.block + in_blocks + 1)
@@ -260,6 +264,11 @@ async def async_wait_to_start_call(
260264
if await subtensor.is_fast_blocks() is False:
261265
in_blocks = 5
262266

267+
bittensor.logging.console.info(
268+
f"Waiting for [blue]{in_blocks}[/blue] blocks before [red]start call[/red]. "
269+
f"Current block: [blue]{subtensor.block}[/blue]."
270+
)
271+
263272
# make sure we passed start_call limit
264273
current_block = await subtensor.block
265274
await subtensor.wait_for_block(current_block + in_blocks + 1)

0 commit comments

Comments
 (0)