diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-10-08 15:51:55 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-10-11 09:17:28 +0200 |
commit | fa43e7c2d9dc5e2df70acd2019bdd24023c1d333 (patch) | |
tree | e6ca1f9c45b419fa04392566b88c38fddac384e0 /test/util/data | |
parent | fa053c0019bc8b2174c485f4885f894f2b5de472 (diff) | |
download | bitcoin-fa43e7c2d9dc5e2df70acd2019bdd24023c1d333.tar.xz |
bitcoin-tx: Avoid treating overflow as OP_0
Diffstat (limited to 'test/util/data')
-rw-r--r-- | test/util/data/bitcoin-util-test.json | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/util/data/bitcoin-util-test.json b/test/util/data/bitcoin-util-test.json index a648c0287a..20684f0f76 100644 --- a/test/util/data/bitcoin-util-test.json +++ b/test/util/data/bitcoin-util-test.json @@ -295,6 +295,12 @@ "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, "error_txt": "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF", |