1
0
SomberNight
2018-04-14 16:13:51 +02:00
parent 6cf334244a
commit 44bb1e9993
2 changed files with 5 additions and 5 deletions

View File

@@ -166,11 +166,11 @@ def var_int(i):
def op_push(i):
if i<0x4c:
if i<0x4c: # OP_PUSHDATA1
return int_to_hex(i)
elif i<0xff:
elif i<=0xff:
return '4c' + int_to_hex(i)
elif i<0xffff:
elif i<=0xffff:
return '4d' + int_to_hex(i,2)
else:
return '4e' + int_to_hex(i,4)