debug printout touchup
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import asyncio
|
||||
import logging
|
||||
from asyncio import Queue
|
||||
from datetime import datetime
|
||||
from typing import Callable, Union, Any, Iterable
|
||||
|
||||
from web3.contract.contract import ContractEvents
|
||||
@@ -156,7 +155,7 @@ class BlockStateRunner:
|
||||
if head != prev_blockhash:
|
||||
prev_blockhash = head
|
||||
await self.queue.put(head)
|
||||
log.debug(f'detected new block {hexstr(head)}')
|
||||
log.debug(f'polled new block {head["number"]} {hexstr(head["hash"])}')
|
||||
if not self.running:
|
||||
break
|
||||
await asyncio.sleep(config.polling)
|
||||
|
||||
Reference in New Issue
Block a user