Add some logging. (#10556)

This commit is contained in:
Richard Kiss
2022-03-04 14:05:12 -08:00
committed by GitHub
parent 058eb33abb
commit 4c345e2fa5
+4 -1
View File
@@ -118,7 +118,10 @@ async def show_async(
elif peak is not None and sync_mode:
sync_max_block = blockchain_state["sync"]["sync_tip_height"]
sync_current_block = blockchain_state["sync"]["sync_progress_height"]
print(f"Current Blockchain Status: Syncing {sync_current_block}/{sync_max_block}.")
print(
f"Current Blockchain Status: Syncing {sync_current_block}/{sync_max_block} "
f"({sync_max_block - sync_current_block} behind)."
)
print("Peak: Hash:", peak.header_hash if peak is not None else "")
elif peak is not None:
print(f"Current Blockchain Status: Not Synced. Peak height: {peak.height}")