From ef94424444d214f51b38ed04057e23b56ea3a375 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Sun, 6 Sep 2020 17:47:42 +0200 Subject: [PATCH] [fix] #336: tx_history: Handle multi-sig signature pubkeys display --- silkaj/tx_history.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/silkaj/tx_history.py b/silkaj/tx_history.py index ea86cb4e..4a240893 100644 --- a/silkaj/tx_history.py +++ b/silkaj/tx_history.py @@ -257,6 +257,10 @@ def prefix(tx_addresses, outputs, occurence): """ if tx_addresses == "Total": return "\n" + + # In case of a received tx, 'outputs' is not defined, then add a breakline + # between the pubkeys except for the first occurence for multi-sig support if not outputs: - return "" + return "\n" if occurence > 0 else "" + return "\n" if occurence + len(outputs) > 1 else "" -- GitLab