Changeset View
Changeset View
Standalone View
Standalone View
test/util/data/bitcoin-util-test.json
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Lines | [ | ||||
"description": "Create a new transaction with a single output script (OP_DROP) in a P2SH" | "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH" | ||||
}, | }, | ||||
{ "exec": "./bitcoin-tx", | { "exec": "./bitcoin-tx", | ||||
"args": ["-json", "-create", "outscript=0:OP_DROP:S", "nversion=1"], | "args": ["-json", "-create", "outscript=0:OP_DROP:S", "nversion=1"], | ||||
"output_cmp": "txcreatescript2.json", | "output_cmp": "txcreatescript2.json", | ||||
"description": "Create a new transaction with a single output script (OP_DROP) in a P2SH (output as json)" | "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH (output as json)" | ||||
}, | }, | ||||
{ "exec": "./bitcoin-tx", | { "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", | |||||
"description": "Try to parse an output script with a decimal number above the allowed range" | |||||
}, | |||||
{ "exec": "./bitcoin-tx", | |||||
"args": ["-create", "outscript=0:4294967296"], | |||||
"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 just above the allowed range" | |||||
}, | |||||
{ "exec": "./bitcoin-tx", | |||||
"args": ["-create", "outscript=0:4294967295"], | |||||
"output_cmp": "txcreatescript5.hex", | |||||
"description": "Try to parse an output script with a decimal number at the upper limit of 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", | |||||
"description": "Try to parse an output script with a decimal number below the allowed range" | |||||
}, | |||||
{ "exec": "./bitcoin-tx", | |||||
"args": ["-create", "outscript=0:-4294967296"], | |||||
"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 just below the allowed range" | |||||
}, | |||||
{ "exec": "./bitcoin-tx", | |||||
"args": ["-create", "outscript=0:-4294967295"], | |||||
"output_cmp": "txcreatescript6.hex", | |||||
"description": "Try to parse an output script with a decimal number at the lower limit of the allowed range" | |||||
}, | |||||
{ "exec": "./bitcoin-tx", | |||||
"args": | "args": | ||||
["-create", "nversion=1", | ["-create", "nversion=1", | ||||
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", | "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", | ||||
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", | "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", | ||||
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", | ||||
"sign=ALL", | "sign=ALL", | ||||
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], | "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], | ||||
"output_cmp": "txcreatesignv1.hex", | "output_cmp": "txcreatesignv1.hex", | ||||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |