Changeset View
Changeset View
Standalone View
Standalone View
test/util/data/bitcoin-util-test.json
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | [ | ||||
"args": ["-create", "locktime=317000foo"], | "args": ["-create", "locktime=317000foo"], | ||||
"return_code": 1, | "return_code": 1, | ||||
"error_txt": "error: Invalid TX locktime requested", | "error_txt": "error: Invalid TX locktime requested", | ||||
"description": "Tests the check for invalid locktime value" | "description": "Tests the check for invalid locktime value" | ||||
}, | }, | ||||
{ "exec": "./bitcoin-tx", | { "exec": "./bitcoin-tx", | ||||
"args": | "args": | ||||
["-create", | ["-create", | ||||
"in=Z897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0"], | |||||
"return_code": 1, | |||||
"error_txt": "error: invalid TX input txid", | |||||
"description": "Tests the check for an invalid txid invalid hex" | |||||
}, | |||||
{ "exec": "./bitcoin-tx", | |||||
"args": | |||||
["-create", | |||||
"in=5897de6bd6:0"], | |||||
"return_code": 1, | |||||
"error_txt": "error: invalid TX input txid", | |||||
"description": "Tests the check for an invalid txid valid hex but too short" | |||||
}, | |||||
{ "exec": "./bitcoin-tx", | |||||
"args": | |||||
["-create", | |||||
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f12:0"], | |||||
"return_code": 1, | |||||
"error_txt": "error: invalid TX input txid", | |||||
"description": "Tests the check for an invalid txid valid hex but too long" | |||||
}, | |||||
{ "exec": "./bitcoin-tx", | |||||
"args": | |||||
["-create", | |||||
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0x"], | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0x"], | ||||
"return_code": 1, | "return_code": 1, | ||||
"error_txt": "error: invalid TX input vout", | "error_txt": "error: invalid TX input vout", | ||||
"description": "Tests the check for an invalid vout value when adding an input" | "description": "Tests the check for an invalid vout value when adding an input" | ||||
}, | }, | ||||
{ "exec": "./bitcoin-tx", | { "exec": "./bitcoin-tx", | ||||
"args": | "args": | ||||
["-create", | ["-create", | ||||
▲ Show 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | ["-create", | ||||
"sign=ALL", | "sign=ALL", | ||||
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], | "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], | ||||
"return_code": 1, | "return_code": 1, | ||||
"error_txt": "error: prevtxs internal object typecheck fail", | "error_txt": "error: prevtxs internal object typecheck fail", | ||||
"description": "Tests the check for invalid vout index in prevtxs for sign" | "description": "Tests the check for invalid vout index in prevtxs for sign" | ||||
}, | }, | ||||
{ "exec": "./bitcoin-tx", | { "exec": "./bitcoin-tx", | ||||
"args": | "args": | ||||
["-create", | |||||
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", | |||||
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", | |||||
"set=prevtxs:[{\"txid\":\"Zd49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59412\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", | |||||
"sign=ALL", | |||||
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], | |||||
"return_code": 1, | |||||
"error_txt": "error: txid must be hexadecimal string (not 'Zd49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59412')", | |||||
"description": "Tests the check for invalid txid due to invalid hex" | |||||
}, | |||||
{ "exec": "./bitcoin-tx", | |||||
"args": | |||||
["-create", | |||||
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", | |||||
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", | |||||
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc594\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", | |||||
"sign=ALL", | |||||
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], | |||||
"return_code": 1, | |||||
"error_txt": "error: txid must be hexadecimal string (not '4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc594')", | |||||
"description": "Tests the check for invalid txid valid hex, but too short" | |||||
}, | |||||
{ "exec": "./bitcoin-tx", | |||||
"args": | |||||
["-create", | |||||
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", | |||||
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", | |||||
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc5948512\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", | |||||
"sign=ALL", | |||||
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], | |||||
"return_code": 1, | |||||
"error_txt": "error: txid must be hexadecimal string (not '4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc5948512')", | |||||
"description": "Tests the check for invalid txid valid hex, but too long" | |||||
}, | |||||
{ "exec": "./bitcoin-tx", | |||||
"args": | |||||
["-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397", "nversion=1"], | ["-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397", "nversion=1"], | ||||
"output_cmp": "txcreateoutpubkey1.hex", | "output_cmp": "txcreateoutpubkey1.hex", | ||||
"description": "Creates a new transaction with a single pay-to-pubkey output" | "description": "Creates a new transaction with a single pay-to-pubkey output" | ||||
}, | }, | ||||
{ "exec": "./bitcoin-tx", | { "exec": "./bitcoin-tx", | ||||
"args": | "args": | ||||
["-json", "-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397", "nversion=1"], | ["-json", "-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397", "nversion=1"], | ||||
"output_cmp": "txcreateoutpubkey1.json", | "output_cmp": "txcreateoutpubkey1.json", | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |