From a3b1049ecce07d0960907785e830b6745bce6ec5 Mon Sep 17 00:00:00 2001 From: poka Date: Sun, 15 Nov 2020 03:56:18 +0100 Subject: [PATCH] Add else statement to document check --- pay.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pay.py b/pay.py index f655d36..b6c8984 100755 --- a/pay.py +++ b/pay.py @@ -56,7 +56,6 @@ except Exception as e: # Check document # print(txDoc) # For debug - docList = txDoc.splitlines() for i, line in enumerate(docList): if re.search("Issuers:", line): @@ -72,9 +71,10 @@ if issuerRaw != issuer or int(outAmount) != amount or outPubkey != recipient or sys.stderr.write(colored("Le document généré est corrompu !\nNe fait plus confiance au noeud " + node + "\n", 'red')) sys.stderr.write(colored(issuerRaw + " envoi " + outAmount + " vers " + outPubkey + " with comment: " + commentRaw + "\n", "yellow")) sys.exit(1) +else: + print("Le document généré est conforme.") -print("Le document généré est conforme.") -# sys.exit(0) +# sys.exit(0) # For debug # Sign TX document signature = fmt["64"](sign(txDoc.encode(), get_privkey(dunikey, "pubsec"))[:-len(txDoc.encode())])