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 7eb5bcb commit 4744b01Copy full SHA for 4744b01
pytoniq/liteclient/sync.py
@@ -9,11 +9,11 @@
9
logger = logging.getLogger('sync')
10
11
12
-async def sync(client: "LiteClient", to_block: BlockIdExt, init_block: BlockIdExt):
+async def sync(client, to_block: BlockIdExt, init_block: BlockIdExt):
13
logger.info(msg=f'syncing to {to_block}')
14
from .client import LiteClient
15
- valid_key_block_stored = False
16
client: LiteClient
+ valid_key_block_stored = False
17
blocks_data = get_last_stored_blocks(init_block.root_hash.hex())
18
if not blocks_data:
19
logger.debug(f'no last blocks were found, syncing from the init block {init_block}')
0 commit comments