mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 00:11:36 +00:00
asdasdsada
This commit is contained in:
parent
5d6aed5104
commit
50758dad2c
1 changed files with 1 additions and 2 deletions
|
@ -384,13 +384,12 @@ class Interface(PrintError):
|
||||||
|
|
||||||
async def run_fetch_blocks(self):
|
async def run_fetch_blocks(self):
|
||||||
header_queue = asyncio.Queue()
|
header_queue = asyncio.Queue()
|
||||||
await self.session.subscribe('blockchain.headers.subscribe', [], header_queue)
|
await self.session.subscribe('blockchain.headers.subscribe', [True], header_queue)
|
||||||
while True:
|
while True:
|
||||||
item = await header_queue.get()
|
item = await header_queue.get()
|
||||||
raw_header = item[0]
|
raw_header = item[0]
|
||||||
self.print_error(raw_header)
|
self.print_error(raw_header)
|
||||||
print(raw_header)
|
print(raw_header)
|
||||||
log(raw_header)
|
|
||||||
height = raw_header['block_height']
|
height = raw_header['block_height']
|
||||||
header = blockchain.deserialize_header(bfh(raw_header['hex']), height)
|
header = blockchain.deserialize_header(bfh(raw_header['hex']), height)
|
||||||
self.tip_header = header
|
self.tip_header = header
|
||||||
|
|
Loading…
Add table
Reference in a new issue