File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 65
65
TaskQueue ,
66
66
)
67
67
from trinity .utils .ema import EMA
68
- from trinity .utils .humanize import humanize_elapsed
68
+ from trinity .utils .humanize import humanize_elapsed , humanize_hash
69
69
from trinity .utils .timer import Timer
70
70
71
71
# (ReceiptBundle, (Receipt, (root_hash, receipt_trie_data))
@@ -537,7 +537,7 @@ async def _display_stats(self) -> None:
537
537
"bps=%-3d "
538
538
"tps=%-4d "
539
539
"elapsed=%0.1f "
540
- "head=#%d (%s...%s) "
540
+ "head=#%d %s "
541
541
"age=%s"
542
542
),
543
543
stats .num_blocks ,
@@ -546,8 +546,7 @@ async def _display_stats(self) -> None:
546
546
stats .transactions_per_second ,
547
547
stats .elapsed ,
548
548
stats .latest_head .block_number ,
549
- stats .latest_head .hex_hash [2 :6 ],
550
- stats .latest_head .hex_hash [- 4 :],
549
+ humanize_hash (stats .latest_head .hash ),
551
550
humanize_elapsed (head_age ),
552
551
)
553
552
You can’t perform that action at this time.
0 commit comments