log tweaks

This commit is contained in:
tim
2024-10-23 01:32:22 -04:00
parent afe75d1378
commit 77bb70cfcb

View File

@@ -88,7 +88,7 @@ class BlockStateRunner(BlockProgressor):
block = Block(chain_id, message['result']) block = Block(chain_id, message['result'])
self.set_latest_block(block) self.set_latest_block(block)
self.new_head_event.set() self.new_head_event.set()
log.debug(f'detected new head {block}') log.debug(f'new head {block}')
if abs(block.timestamp-timestamp()) > 3: if abs(block.timestamp-timestamp()) > 3:
log.warning(f'Blockchain {chain_id} time is off by {block.timestamp-timestamp():.1f}s') log.warning(f'Blockchain {chain_id} time is off by {block.timestamp-timestamp():.1f}s')
if not self.running: if not self.running: