|
26 | 26 | "output_cmp": "blanktxv2.json",
|
27 | 27 | "description": "Creates a blank transaction when nothing is piped into bitcoin-tx (output in json)"
|
28 | 28 | },
|
| 29 | + { "exec": "./bitcoin-tx", |
| 30 | + "args": ["-create", "nversion=1foo"], |
| 31 | + "return_code": 1, |
| 32 | + "error_txt": "error: Invalid TX version requested", |
| 33 | + "description": "Tests the check for invalid nversion value" |
| 34 | + }, |
29 | 35 | { "exec": "./bitcoin-tx",
|
30 | 36 | "args": ["-", "delin=1"],
|
31 | 37 | "input": "tx394b54bb.hex",
|
|
45 | 51 | "error_txt": "error: Invalid TX input index '31'",
|
46 | 52 | "description": "Attempts to delete an input with a bad index from a transaction. Expected to fail."
|
47 | 53 | },
|
| 54 | + { "exec": "./bitcoin-tx", |
| 55 | + "args": ["-", "delin=1foo"], |
| 56 | + "input": "tx394b54bb.hex", |
| 57 | + "return_code": 1, |
| 58 | + "error_txt": "error: Invalid TX input index", |
| 59 | + "description": "Tests the check for an invalid input index with delin" |
| 60 | + }, |
48 | 61 | { "exec": "./bitcoin-tx",
|
49 | 62 | "args": ["-", "delout=1"],
|
50 | 63 | "input": "tx394b54bb.hex",
|
|
64 | 77 | "error_txt": "error: Invalid TX output index '2'",
|
65 | 78 | "description": "Attempts to delete an output with a bad index from a transaction. Expected to fail."
|
66 | 79 | },
|
| 80 | + { "exec": "./bitcoin-tx", |
| 81 | + "args": ["-", "delout=1foo"], |
| 82 | + "input": "tx394b54bb.hex", |
| 83 | + "return_code": 1, |
| 84 | + "error_txt": "error: Invalid TX output index", |
| 85 | + "description": "Tests the check for an invalid output index with delout" |
| 86 | + }, |
67 | 87 | { "exec": "./bitcoin-tx",
|
68 | 88 | "args": ["-", "locktime=317000"],
|
69 | 89 | "input": "tx394b54bb.hex",
|
|
76 | 96 | "output_cmp": "tt-locktime317000-out.json",
|
77 | 97 | "description": "Adds an nlocktime to a transaction (output in json)"
|
78 | 98 | },
|
| 99 | + { "exec": "./bitcoin-tx", |
| 100 | + "args": ["-create", "locktime=317000foo"], |
| 101 | + "return_code": 1, |
| 102 | + "error_txt": "error: Invalid TX locktime requested", |
| 103 | + "description": "Tests the check for invalid locktime value" |
| 104 | + }, |
| 105 | + { "exec": "./bitcoin-tx", |
| 106 | + "args": |
| 107 | + ["-create", |
| 108 | + "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
| 109 | + "replaceable=0foo"], |
| 110 | + "return_code": 1, |
| 111 | + "error_txt": "error: Invalid TX input index", |
| 112 | + "description": "Tests the check for an invalid input index with replaceable" |
| 113 | + }, |
| 114 | + { "exec": "./bitcoin-tx", |
| 115 | + "args": |
| 116 | + ["-create", |
| 117 | + "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0x"], |
| 118 | + "return_code": 1, |
| 119 | + "error_txt": "error: invalid TX input vout", |
| 120 | + "description": "Tests the check for an invalid vout value when adding an input" |
| 121 | + }, |
79 | 122 | { "exec": "./bitcoin-tx",
|
80 | 123 | "args":
|
81 | 124 | ["-create",
|
|
225 | 268 | "output_cmp": "txcreatesignv2.hex",
|
226 | 269 | "description": "Creates a new transaction with a single input and a single output, and then signs the transaction"
|
227 | 270 | },
|
| 271 | + { "exec": "./bitcoin-tx", |
| 272 | + "args": |
| 273 | + ["-create", |
| 274 | + "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
| 275 | + "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", |
| 276 | + "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":\"0foo\",\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
| 277 | + "sign=ALL", |
| 278 | + "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], |
| 279 | + "return_code": 1, |
| 280 | + "error_txt": "error: prevtxs internal object typecheck fail", |
| 281 | + "description": "Tests the check for invalid vout index in prevtxs for sign" |
| 282 | + }, |
228 | 283 | { "exec": "./bitcoin-tx",
|
229 | 284 | "args":
|
230 | 285 | ["-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397", "nversion=1"],
|
|
0 commit comments