|
42 | 42 | "args": ["-", "delin=31"],
|
43 | 43 | "input": "tx394b54bb.hex",
|
44 | 44 | "return_code": 1,
|
| 45 | + "error_txt": "error: Invalid TX input index '31'", |
45 | 46 | "description": "Attempts to delete an input with a bad index from a transaction. Expected to fail."
|
46 | 47 | },
|
47 | 48 | { "exec": "./bitcoin-tx",
|
|
60 | 61 | "args": ["-", "delout=2"],
|
61 | 62 | "input": "tx394b54bb.hex",
|
62 | 63 | "return_code": 1,
|
| 64 | + "error_txt": "error: Invalid TX output index '2'", |
63 | 65 | "description": "Attempts to delete an output with a bad index from a transaction. Expected to fail."
|
64 | 66 | },
|
65 | 67 | { "exec": "./bitcoin-tx",
|
|
74 | 76 | "output_cmp": "tt-locktime317000-out.json",
|
75 | 77 | "description": "Adds an nlocktime to a transaction (output in json)"
|
76 | 78 | },
|
| 79 | + { "exec": "./bitcoin-tx", |
| 80 | + "args": |
| 81 | + ["-create", |
| 82 | + "outaddr=1"], |
| 83 | + "return_code": 1, |
| 84 | + "error_txt": "error: TX output missing or too many separators", |
| 85 | + "description": "Malformed outaddr argument (no address specified). Expected to fail." |
| 86 | + }, |
| 87 | + { "exec": "./bitcoin-tx", |
| 88 | + "args": |
| 89 | + ["-create", |
| 90 | + "outaddr=1:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o:garbage"], |
| 91 | + "return_code": 1, |
| 92 | + "error_txt": "error: TX output missing or too many separators", |
| 93 | + "description": "Malformed outaddr argument (too many separators). Expected to fail." |
| 94 | + }, |
| 95 | + { "exec": "./bitcoin-tx", |
| 96 | + "args": |
| 97 | + ["-create", |
| 98 | + "outpubkey=0"], |
| 99 | + "return_code": 1, |
| 100 | + "error_txt": "error: TX output missing or too many separators", |
| 101 | + "description": "Malformed outpubkey argument (no pubkey specified). Expected to fail." |
| 102 | + }, |
| 103 | + { "exec": "./bitcoin-tx", |
| 104 | + "args": |
| 105 | + ["-create", |
| 106 | + "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W:non53nse"], |
| 107 | + "return_code": 1, |
| 108 | + "error_txt": "error: TX output missing or too many separators", |
| 109 | + "description": "Malformed outpubkey argument (too many separators). Expected to fail." |
| 110 | + }, |
77 | 111 | { "exec": "./bitcoin-tx",
|
78 | 112 | "args":
|
79 | 113 | ["-create",
|
|
233 | 267 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
234 | 268 | "outdata=4:badhexdata"],
|
235 | 269 | "return_code": 1,
|
| 270 | + "error_txt": "error: invalid TX output data", |
236 | 271 | "description": "Attempts to create a new transaction with one input and an output with malformed hex data. Expected to fail"
|
237 | 272 | },
|
238 | 273 | { "exec": "./bitcoin-tx",
|
|
241 | 276 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
242 | 277 | "outdata=badhexdata"],
|
243 | 278 | "return_code": 1,
|
| 279 | + "error_txt": "error: invalid TX output data", |
244 | 280 | "description": "Attempts to create a new transaction with one input and an output with no value and malformed hex data. Expected to fail"
|
245 | 281 | },
|
246 | 282 | { "exec": "./bitcoin-tx",
|
|
0 commit comments