fix deserialize: OP_0 is not OP_PUSHDATA
This commit is contained in:
parent
0c5f42cc29
commit
6766990931
|
@ -315,7 +315,7 @@ def match_decoded(decoded, to_match):
|
||||||
if len(decoded) != len(to_match):
|
if len(decoded) != len(to_match):
|
||||||
return False;
|
return False;
|
||||||
for i in range(len(decoded)):
|
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.
|
continue # Opcodes below OP_PUSHDATA4 all just push data onto stack, and are equivalent.
|
||||||
if to_match[i] != decoded[i][0]:
|
if to_match[i] != decoded[i][0]:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue