|
1 | 1 | [
|
2 | 2 | { "exec": "./bitcoin-tx",
|
3 | 3 | "args": ["-create"],
|
4 |
| - "output_cmp": "blanktx.hex" |
| 4 | + "output_cmp": "blanktx.hex", |
| 5 | + "description": "Creates a blank transaction" |
5 | 6 | },
|
6 | 7 | { "exec": "./bitcoin-tx",
|
7 | 8 | "args": ["-json","-create"],
|
8 |
| - "output_cmp": "blanktx.json" |
| 9 | + "output_cmp": "blanktx.json", |
| 10 | + "description": "Creates a blank transaction (output in json)" |
9 | 11 | },
|
10 | 12 | { "exec": "./bitcoin-tx",
|
11 | 13 | "args": ["-"],
|
12 | 14 | "input": "blanktx.hex",
|
13 |
| - "output_cmp": "blanktx.hex" |
| 15 | + "output_cmp": "blanktx.hex", |
| 16 | + "description": "Creates a blank transaction when nothing is piped into bitcoin-tx" |
14 | 17 | },
|
15 | 18 | { "exec": "./bitcoin-tx",
|
16 | 19 | "args": ["-json","-"],
|
17 | 20 | "input": "blanktx.hex",
|
18 |
| - "output_cmp": "blanktx.json" |
| 21 | + "output_cmp": "blanktx.json", |
| 22 | + "description": "Creates a blank transaction when nothing is piped into bitcoin-tx (output in json)" |
19 | 23 | },
|
20 | 24 | { "exec": "./bitcoin-tx",
|
21 | 25 | "args": ["-", "delin=1"],
|
22 | 26 | "input": "tx394b54bb.hex",
|
23 |
| - "output_cmp": "tt-delin1-out.hex" |
| 27 | + "output_cmp": "tt-delin1-out.hex", |
| 28 | + "description": "Deletes a single input from a transaction" |
24 | 29 | },
|
25 | 30 | { "exec": "./bitcoin-tx",
|
26 | 31 | "args": ["-json", "-", "delin=1"],
|
27 | 32 | "input": "tx394b54bb.hex",
|
28 |
| - "output_cmp": "tt-delin1-out.json" |
| 33 | + "output_cmp": "tt-delin1-out.json", |
| 34 | + "description": "Deletes a single input from a transaction (output in json)" |
29 | 35 | },
|
30 | 36 | { "exec": "./bitcoin-tx",
|
31 | 37 | "args": ["-", "delin=31"],
|
32 | 38 | "input": "tx394b54bb.hex",
|
33 |
| - "return_code": 1 |
| 39 | + "return_code": 1, |
| 40 | + "description": "Attempts to delete an input with a bad index from a transaction. Expected to fail." |
34 | 41 | },
|
35 | 42 | { "exec": "./bitcoin-tx",
|
36 | 43 | "args": ["-", "delout=1"],
|
37 | 44 | "input": "tx394b54bb.hex",
|
38 |
| - "output_cmp": "tt-delout1-out.hex" |
| 45 | + "output_cmp": "tt-delout1-out.hex", |
| 46 | + "description": "Deletes a single output from a transaction" |
39 | 47 | },
|
40 | 48 | { "exec": "./bitcoin-tx",
|
41 | 49 | "args": ["-json", "-", "delout=1"],
|
42 | 50 | "input": "tx394b54bb.hex",
|
43 |
| - "output_cmp": "tt-delout1-out.json" |
| 51 | + "output_cmp": "tt-delout1-out.json", |
| 52 | + "description": "Deletes a single output from a transaction (output in json)" |
44 | 53 | },
|
45 | 54 | { "exec": "./bitcoin-tx",
|
46 | 55 | "args": ["-", "delout=2"],
|
47 | 56 | "input": "tx394b54bb.hex",
|
48 |
| - "return_code": 1 |
| 57 | + "return_code": 1, |
| 58 | + "description": "Attempts to delete an output with a bad index from a transaction. Expected to fail." |
49 | 59 | },
|
50 | 60 | { "exec": "./bitcoin-tx",
|
51 | 61 | "args": ["-", "locktime=317000"],
|
52 | 62 | "input": "tx394b54bb.hex",
|
53 |
| - "output_cmp": "tt-locktime317000-out.hex" |
| 63 | + "output_cmp": "tt-locktime317000-out.hex", |
| 64 | + "description": "Adds an nlocktime to a transaction" |
54 | 65 | },
|
55 | 66 | { "exec": "./bitcoin-tx",
|
56 | 67 | "args": ["-json", "-", "locktime=317000"],
|
57 | 68 | "input": "tx394b54bb.hex",
|
58 |
| - "output_cmp": "tt-locktime317000-out.json" |
| 69 | + "output_cmp": "tt-locktime317000-out.json", |
| 70 | + "description": "Adds an nlocktime to a transaction (output in json)" |
59 | 71 | },
|
60 | 72 | { "exec": "./bitcoin-tx",
|
61 | 73 | "args":
|
|
65 | 77 | "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
|
66 | 78 | "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
67 | 79 | "outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
|
68 |
| - "output_cmp": "txcreate1.hex" |
| 80 | + "output_cmp": "txcreate1.hex", |
| 81 | + "description": "Creates a new transaction with three inputs and two outputs" |
69 | 82 | },
|
70 | 83 | { "exec": "./bitcoin-tx",
|
71 | 84 | "args":
|
|
76 | 89 | "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
|
77 | 90 | "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
78 | 91 | "outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
|
79 |
| - "output_cmp": "txcreate1.json" |
| 92 | + "output_cmp": "txcreate1.json", |
| 93 | + "description": "Creates a new transaction with three inputs and two outputs (output in json)" |
80 | 94 | },
|
81 | 95 | { "exec": "./bitcoin-tx",
|
82 | 96 | "args": ["-create", "outscript=0:"],
|
83 |
| - "output_cmp": "txcreate2.hex" |
| 97 | + "output_cmp": "txcreate2.hex", |
| 98 | + "description": "Creates a new transaction with a single empty output script" |
84 | 99 | },
|
85 | 100 | { "exec": "./bitcoin-tx",
|
86 | 101 | "args": ["-json", "-create", "outscript=0:"],
|
87 |
| - "output_cmp": "txcreate2.json" |
| 102 | + "output_cmp": "txcreate2.json", |
| 103 | + "description": "Creates a new transaction with a single empty output script (output in json)" |
88 | 104 | },
|
89 | 105 | { "exec": "./bitcoin-tx",
|
90 | 106 | "args":
|
|
94 | 110 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
|
95 | 111 | "sign=ALL",
|
96 | 112 | "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
|
97 |
| - "output_cmp": "txcreatesign.hex" |
| 113 | + "output_cmp": "txcreatesign.hex", |
| 114 | + "description": "Creates a new transaction with a single input and a single output, and then signs the transaction" |
98 | 115 | },
|
99 | 116 | { "exec": "./bitcoin-tx",
|
100 | 117 | "args":
|
|
105 | 122 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
|
106 | 123 | "sign=ALL",
|
107 | 124 | "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
|
108 |
| - "output_cmp": "txcreatesign.json" |
| 125 | + "output_cmp": "txcreatesign.json", |
| 126 | + "description": "Creates a new transaction with a single input and a single output, and then signs the transaction (output in json)" |
109 | 127 | },
|
110 | 128 | { "exec": "./bitcoin-tx",
|
111 | 129 | "args":
|
112 | 130 | ["-create",
|
113 | 131 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
114 | 132 | "outdata=4:badhexdata"],
|
115 |
| - "return_code": 1 |
| 133 | + "return_code": 1, |
| 134 | + "description": "Attempts to create a new transaction with one input and an output with malformed hex data. Expected to fail" |
116 | 135 | },
|
117 | 136 | { "exec": "./bitcoin-tx",
|
118 | 137 | "args":
|
119 | 138 | ["-create",
|
120 | 139 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
121 | 140 | "outdata=badhexdata"],
|
122 |
| - "return_code": 1 |
| 141 | + "return_code": 1, |
| 142 | + "description": "Attempts to create a new transaction with one input and an output with no value and malformed hex data. Expected to fail" |
123 | 143 | },
|
124 | 144 | { "exec": "./bitcoin-tx",
|
125 | 145 | "args":
|
126 | 146 | ["-create",
|
127 | 147 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
128 | 148 | "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
129 | 149 | "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
|
130 |
| - "output_cmp": "txcreatedata1.hex" |
| 150 | + "output_cmp": "txcreatedata1.hex", |
| 151 | + "description": "Creates a new transaction with one input, one address output and one data output" |
131 | 152 | },
|
132 | 153 | { "exec": "./bitcoin-tx",
|
133 | 154 | "args":
|
|
136 | 157 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
137 | 158 | "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
138 | 159 | "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
|
139 |
| - "output_cmp": "txcreatedata1.json" |
| 160 | + "output_cmp": "txcreatedata1.json", |
| 161 | + "description": "Creates a new transaction with one input, one address output and one data output (output in json)" |
140 | 162 | },
|
141 | 163 | { "exec": "./bitcoin-tx",
|
142 | 164 | "args":
|
143 | 165 | ["-create",
|
144 | 166 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
145 | 167 | "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
146 | 168 | "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
|
147 |
| - "output_cmp": "txcreatedata2.hex" |
| 169 | + "output_cmp": "txcreatedata2.hex", |
| 170 | + "description": "Creates a new transaction with one input, one address output and one data (zero value) output" |
148 | 171 | },
|
149 | 172 | { "exec": "./bitcoin-tx",
|
150 | 173 | "args":
|
|
153 | 176 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
154 | 177 | "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
155 | 178 | "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
|
156 |
| - "output_cmp": "txcreatedata2.json" |
| 179 | + "output_cmp": "txcreatedata2.json", |
| 180 | + "description": "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)" |
157 | 181 | },
|
158 | 182 | { "exec": "./bitcoin-tx",
|
159 | 183 | "args":
|
160 | 184 | ["-create",
|
161 | 185 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
|
162 | 186 | "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
|
163 |
| - "output_cmp": "txcreatedata_seq0.hex" |
| 187 | + "output_cmp": "txcreatedata_seq0.hex", |
| 188 | + "description": "Creates a new transaction with one input with sequence number and one address output" |
164 | 189 | },
|
165 | 190 | { "exec": "./bitcoin-tx",
|
166 | 191 | "args":
|
167 | 192 | ["-json",
|
168 | 193 | "-create",
|
169 | 194 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
|
170 | 195 | "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
|
171 |
| - "output_cmp": "txcreatedata_seq0.json" |
| 196 | + "output_cmp": "txcreatedata_seq0.json", |
| 197 | + "description": "Creates a new transaction with one input with sequence number and one address output (output in json)" |
172 | 198 | },
|
173 | 199 | { "exec": "./bitcoin-tx",
|
174 | 200 | "args":
|
175 | 201 | ["01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000",
|
176 | 202 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:1"],
|
177 |
| - "output_cmp": "txcreatedata_seq1.hex" |
| 203 | + "output_cmp": "txcreatedata_seq1.hex", |
| 204 | + "description": "Adds a new input with sequence number to a transaction" |
178 | 205 | },
|
179 | 206 | { "exec": "./bitcoin-tx",
|
180 | 207 | "args":
|
181 | 208 | ["-json",
|
182 | 209 | "01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000",
|
183 | 210 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:1"],
|
184 |
| - "output_cmp": "txcreatedata_seq1.json" |
| 211 | + "output_cmp": "txcreatedata_seq1.json", |
| 212 | + "description": "Adds a new input with sequence number to a transaction (output in json)" |
185 | 213 | }
|
186 | 214 | ]
|
0 commit comments