From 67669909318a923d2762bf9035948cfadcae3630 Mon Sep 17 00:00:00 2001 From: thomasv Date: Sat, 23 Feb 2013 14:41:55 +0100 Subject: [PATCH] fix deserialize: OP_0 is not OP_PUSHDATA --- lib/deserialize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/deserialize.py b/lib/deserialize.py index b8e9b780..f0ceafa2 100644 --- a/lib/deserialize.py +++ b/lib/deserialize.py @@ -315,7 +315,7 @@ def match_decoded(decoded, to_match): if len(decoded) != len(to_match): return False; for i in range(len(decoded)): - if to_match[i] == opcodes.OP_PUSHDATA4 and decoded[i][0] <= opcodes.OP_PUSHDATA4: + if to_match[i] == opcodes.OP_PUSHDATA4 and decoded[i][0] <= opcodes.OP_PUSHDATA4 and decoded[i][0]>0: continue # Opcodes below OP_PUSHDATA4 all just push data onto stack, and are equivalent. if to_match[i] != decoded[i][0]: return False