log tweak
This commit is contained in:
@@ -7,8 +7,6 @@ from datetime import timedelta
|
|||||||
from web3.types import EventData
|
from web3.types import EventData
|
||||||
|
|
||||||
from dexorder import from_timestamp, blockchain, config
|
from dexorder import from_timestamp, blockchain, config
|
||||||
from dexorder.addrmeta import address_metadata
|
|
||||||
from dexorder.base.block import latest_block
|
|
||||||
from dexorder.base.chain import current_chain
|
from dexorder.base.chain import current_chain
|
||||||
from dexorder.bin.executable import execute
|
from dexorder.bin.executable import execute
|
||||||
from dexorder.blocks import get_block_timestamp, get_block
|
from dexorder.blocks import get_block_timestamp, get_block
|
||||||
@@ -46,9 +44,8 @@ async def flush_callback():
|
|||||||
fork = current_fork.get()
|
fork = current_fork.get()
|
||||||
block = await get_block(fork.height, chain_id=chain_id)
|
block = await get_block(fork.height, chain_id=chain_id)
|
||||||
time = from_timestamp(block.timestamp)
|
time = from_timestamp(block.timestamp)
|
||||||
log.info("flushing OHLC's")
|
|
||||||
ohlcs.flush()
|
ohlcs.flush()
|
||||||
log.info(f'backfill completed through block {block.height} {time:%Y-%m-%d %H:%M:%S} {hexstr(block.hash)}')
|
log.info(f'OHLC\'s flushed through block {block.height} {time:%Y-%m-%d %H:%M:%S} {hexstr(block.hash)}')
|
||||||
|
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
|
|||||||
Reference in New Issue
Block a user