aboutsummaryrefslogtreecommitdiff
path: root/test/functional/data/invalid_txs.py
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2019-04-25 17:01:01 -0400
committerGregory Sanders <gsanders87@gmail.com>2019-04-25 21:01:09 -0400
commit25b078658139c1aea58393a32ac5a79144d8d140 (patch)
tree696bebafeb0ca464416614d99681c5c5a610749b /test/functional/data/invalid_txs.py
parentc65c77c721b69f1782509145d62978d31c9a1d78 (diff)
Fix missing input template by making minimal tx
Diffstat (limited to 'test/functional/data/invalid_txs.py')
-rw-r--r--test/functional/data/invalid_txs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/data/invalid_txs.py b/test/functional/data/invalid_txs.py
index 02deae92f3..d262dae5aa 100644
--- a/test/functional/data/invalid_txs.py
+++ b/test/functional/data/invalid_txs.py
@@ -71,9 +71,13 @@ class InputMissing(BadTxTemplate):
reject_reason = "bad-txns-vin-empty"
expect_disconnect = False
+ # We use a blank transaction here to make sure
+ # it is interpreted as a non-witness transaction.
+ # Otherwise the transaction will fail the
+ # "surpufluous witness" check during deserialization
+ # rather than the input count check.
def get_tx(self):
tx = CTransaction()
- tx.vout.append(CTxOut(0, sc.CScript([sc.OP_TRUE] * 100)))
tx.calc_sha256()
return tx