aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/blocktools.py
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@gmail.com>2018-10-08 04:56:39 -0400
committerJames O'Beirne <james.obeirne@gmail.com>2018-11-27 17:53:53 -0500
commit59e387705c7e55ec40400301346354fa2d0c613f (patch)
tree612d1ebcc06d97f54f5cc8e3b609f8812a1670ef /test/functional/test_framework/blocktools.py
parenta4eaaa6ac53606a1533b56050af77961d8c27dc7 (diff)
downloadbitcoin-59e387705c7e55ec40400301346354fa2d0c613f.tar.xz
test: add invalid tx templates for use in functional tests
Add templates for easily constructing different kinds of invalid transactions and use them in feature_block and p2p_invalid_tx.
Diffstat (limited to 'test/functional/test_framework/blocktools.py')
-rw-r--r--test/functional/test_framework/blocktools.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/test_framework/blocktools.py b/test/functional/test_framework/blocktools.py
index 81cce1167b..7679ea5398 100644
--- a/test/functional/test_framework/blocktools.py
+++ b/test/functional/test_framework/blocktools.py
@@ -41,6 +41,8 @@ from .script import (
from .util import assert_equal
from io import BytesIO
+MAX_BLOCK_SIGOPS = 20000
+
# From BIP141
WITNESS_COMMITMENT_HEADER = b"\xaa\x21\xa9\xed"