aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_block.py
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2018-05-03 16:50:25 -0400
committerJohnson Lau <[email protected]>2018-05-05 04:59:55 +0800
commit364bae5f7a6b16eef63990154e48f19e7e693039 (patch)
tree0ef3fde608d5bd41a3cdc6ccc7285ba58354218f /test/functional/feature_block.py
parentPolicy to reject extremely small transactions (diff)
downloaddiscoin-364bae5f7a6b16eef63990154e48f19e7e693039.tar.xz
discoin-364bae5f7a6b16eef63990154e48f19e7e693039.zip
qa: Pad scriptPubKeys to get minimum sized txs
Diffstat (limited to 'test/functional/feature_block.py')
-rwxr-xr-xtest/functional/feature_block.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/feature_block.py b/test/functional/feature_block.py
index 17d3ddae4..f943fdf17 100755
--- a/test/functional/feature_block.py
+++ b/test/functional/feature_block.py
@@ -32,6 +32,7 @@ from test_framework.script import (
OP_ELSE,
OP_ENDIF,
OP_EQUAL,
+ OP_DROP,
OP_FALSE,
OP_HASH160,
OP_IF,
@@ -1215,7 +1216,7 @@ class FullBlockTest(BitcoinTestFramework):
block.vtx.extend(tx_list)
# this is a little handier to use than the version in blocktools.py
- def create_tx(self, spend_tx, n, value, script=CScript([OP_TRUE])):
+ def create_tx(self, spend_tx, n, value, script=CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE])):
return create_transaction(spend_tx, n, b"", value, script)
# sign a transaction, using the key we know about