commit f8fd1c14dbc0da68d813eabde8de689e2ffc923f parent f7096010f08c3567f6fc473f2013767ccd809336 Author: ThomasV <thomasv@electrum.org> Date: Tue, 18 Apr 2017 12:31:42 +0200 fix parse_sig Diffstat:
M | lib/transaction.py | | | 9 | +-------- |
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git 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: