debug printout touchup
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
from asyncio import Queue
|
from asyncio import Queue
|
||||||
from datetime import datetime
|
|
||||||
from typing import Callable, Union, Any, Iterable
|
from typing import Callable, Union, Any, Iterable
|
||||||
|
|
||||||
from web3.contract.contract import ContractEvents
|
from web3.contract.contract import ContractEvents
|
||||||
@@ -156,7 +155,7 @@ class BlockStateRunner:
|
|||||||
if head != prev_blockhash:
|
if head != prev_blockhash:
|
||||||
prev_blockhash = head
|
prev_blockhash = head
|
||||||
await self.queue.put(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:
|
if not self.running:
|
||||||
break
|
break
|
||||||
await asyncio.sleep(config.polling)
|
await asyncio.sleep(config.polling)
|
||||||
|
|||||||
Reference in New Issue
Block a user