Add p2p-fullblocktest.py

This commit is contained in:
Casey Rodarmor
2015-08-05 17:47:34 -04:00
parent 49793fbb09
commit 0ce73985a8
12 changed files with 702 additions and 53 deletions

View File

@@ -27,7 +27,7 @@ if sys.version > '3':
import copy
import struct
import test_framework.bignum
from test_framework.bignum import bn2vch
MAX_SCRIPT_SIZE = 10000
MAX_SCRIPT_ELEMENT_SIZE = 520
@@ -664,7 +664,7 @@ class CScript(bytes):
elif other == -1:
other = bytes(bchr(OP_1NEGATE))
else:
other = CScriptOp.encode_op_pushdata(bignum.bn2vch(other))
other = CScriptOp.encode_op_pushdata(bn2vch(other))
elif isinstance(other, (bytes, bytearray)):
other = CScriptOp.encode_op_pushdata(other)
return other