We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 035bf47 commit b2e208bCopy full SHA for b2e208b
tests/e2e_tests/test_children_hotkeys.py
@@ -0,0 +1,15 @@
1
+import pytest
2
+
3
+from bittensor_cli.src.bittensor.subtensor_interface import SubtensorInterface
4
+from bittensor_cli.src.commands.stake.children_hotkeys import (
5
+ get_childkey_completion_block,
6
+)
7
8
9
+@pytest.mark.asyncio
10
+async def test_get_childkey_completion_block(local_chain):
11
+ async with SubtensorInterface("ws://127.0.0.1:9945") as subtensor:
12
+ current_block, completion_block = await get_childkey_completion_block(
13
+ subtensor, 1
14
+ )
15
+ assert (completion_block - current_block) >= 7200
0 commit comments