From f8fd1c14dbc0da68d813eabde8de689e2ffc923f Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 18 Apr 2017 12:31:42 +0200 Subject: [PATCH] fix parse_sig --- lib/transaction.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/transaction.py b/lib/transaction.py index e46f4efb..0fe5f995 100644 --- a/lib/transaction.py +++ b/lib/transaction.py @@ -284,14 +284,7 @@ def match_decoded(decoded, to_match): def parse_sig(x_sig): - s = [] - for sig in x_sig: - if sig == NO_SIGNATURE: - s.append(None) - else: - s.append(sig[:-2]) - return s - + return map(lambda x: None if x == NO_SIGNATURE else x, x_sig) def safe_parse_pubkey(x): try: