tests: add independent error message for missing witnessScript

This commit is contained in:
Daniel Cousens 2018-01-17 14:25:06 +11:00
commit 098188dd3a
2 changed files with 27 additions and 2 deletions

View file

@ -1966,6 +1966,28 @@
}
]
},
{
"exception": "PrevOutScript is witnessscripthash, requires witnessScript",
"inputs": [
{
"txId": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"vout": 1,
"prevTxScript": "OP_0 0f9ea7bae7166c980169059e39443ed13324495b0d6678ce716262e879591210",
"signs": [
{
"keyPair": "KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn",
"throws": true
}
]
}
],
"outputs": [
{
"script": "OP_DUP OP_HASH160 aa4d7985c57e011a8b3dd8e0e5a73aaef41629c5 OP_EQUALVERIFY OP_CHECKSIG",
"value": 1000
}
]
},
{
"exception": "Inconsistent redeemScript",
"network": "testnet",