mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 11:57:28 -03:00
Merge #18447: test: Add coverage for script parse error in ParseScript
dcda81c471
test: add coverage for script parse error in ParseScript (pierrenn) Pull request description: Follow up on this suggestion : https://github.com/bitcoin/bitcoin/pull/18416#issuecomment-603966799 This adds a test case to raise the `script parse error` in `ParseScript`. ACKs for top commit: instagibbs: utACKdcda81c471
Tree-SHA512: ae0ef2c00f34cee818c83582f190d5f4043159e922862f2b442b7b895b8ff3ca421533699247c12c367be77813b5205830a771cd47a18e8932807ccace2d6a1c
This commit is contained in:
commit
210b533a11
1 changed files with 6 additions and 0 deletions
|
@ -218,6 +218,12 @@
|
||||||
"output_cmp": "txcreate2.json",
|
"output_cmp": "txcreate2.json",
|
||||||
"description": "Parses a transaction with no inputs and a single output script (output in json)"
|
"description": "Parses a transaction with no inputs and a single output script (output in json)"
|
||||||
},
|
},
|
||||||
|
{ "exec": "./bitcoin-tx",
|
||||||
|
"args": ["-create", "outscript=0:123badscript"],
|
||||||
|
"return_code": 1,
|
||||||
|
"error_txt": "error: script parse error",
|
||||||
|
"description": "Create a new transaction with an invalid output script"
|
||||||
|
},
|
||||||
{ "exec": "./bitcoin-tx",
|
{ "exec": "./bitcoin-tx",
|
||||||
"args": ["-create", "outscript=0:OP_DROP", "nversion=1"],
|
"args": ["-create", "outscript=0:OP_DROP", "nversion=1"],
|
||||||
"output_cmp": "txcreatescript1.hex",
|
"output_cmp": "txcreatescript1.hex",
|
||||||
|
|
Loading…
Reference in a new issue