bitcoin-tx: Avoid treating overflow as OP_0

This commit is contained in:
MarcoFalke
2021-10-08 15:51:55 +02:00
parent fa053c0019
commit fa43e7c2d9
3 changed files with 10 additions and 4 deletions

View File

@@ -294,6 +294,12 @@
"output_cmp": "txcreatescript4.json",
"description": "Create a new transaction with a single output script (OP_DROP) in a P2SH, wrapped in a P2SH (output as json)"
},
{ "exec": "./bitcoin-tx",
"args": ["-create", "outscript=0:999999999999999999999999999999"],
"return_code": 1,
"error_txt": "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF",
"description": "Try to parse an output script with a decimal number above the allowed range"
},
{ "exec": "./bitcoin-tx",
"args": ["-create", "outscript=0:9999999999"],
"return_code": 1,