debug printout touchup

This commit is contained in:
Tim Olson
2024-01-05 15:53:09 -04:00
parent dcefd289e3
commit d03b9af456

View File

@@ -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)