From a87d6e46030170fcf2d6af80676bb4523fb37a9d Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Mon, 25 Mar 2019 23:31:04 +0100 Subject: [PATCH] [enh] #190: diffi: improve head text printed --- silkaj/commands.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/silkaj/commands.py b/silkaj/commands.py index 8bafca11..fc8d0305 100644 --- a/silkaj/commands.py +++ b/silkaj/commands.py @@ -131,14 +131,16 @@ async def display_diffi(current, diffi): d["Σ diffi"] = d.pop("level") system("cls||clear") print( - "Current block: n°{0}, generated on the {1}\nMinimal Proof-of-Work: {2} to match `{3}`\nDifficulty to generate next block n°{4} for {5}/{6} nodes:\n{7}".format( + "Current block: n°{0}, generated on the {1}\n\ +Generation of next block n°{2} possible by at least {3}/{4} members\n\ +Common Proof-of-Work difficulty level: {5}, hash starting with `{6}`\n{7}".format( current["number"], convert_time(current["time"], "all"), - current["powMin"], - match_pattern(int(current["powMin"]))[0], diffi["block"], issuers, len(diffi["levels"]), + current["powMin"], + match_pattern(int(current["powMin"]))[0], tabulate( sorted_diffi, headers="keys", tablefmt="orgtbl", stralign="center" ), -- GitLab