|
16 | 16 | "description": "Creates a blank transaction when nothing is piped into digibyte-tx" |
17 | 17 | }, |
18 | 18 | { "exec": "./digibyte-tx", |
19 | | - "args": ["-json","-create"], |
| 19 | + "args": ["-json","-create","nversion=2"], |
20 | 20 | "output_cmp": "blanktxv2.json", |
21 | 21 | "description": "Creates a blank transaction (output in json)" |
22 | 22 | }, |
|
130 | 130 | { "exec": "./digibyte-tx", |
131 | 131 | "args": |
132 | 132 | ["-create", |
133 | | - "outaddr=1:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o:garbage"], |
| 133 | + "outaddr=1:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44:garbage"], |
134 | 134 | "return_code": 1, |
135 | 135 | "error_txt": "error: TX output missing or too many separators", |
136 | 136 | "description": "Malformed outaddr argument (too many separators). Expected to fail." |
|
154 | 154 | { "exec": "./digibyte-tx", |
155 | 155 | "args": |
156 | 156 | ["-create", |
| 157 | + "nversion=2", |
157 | 158 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
158 | 159 | "in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18", |
159 | 160 | "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1", |
160 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
161 | | - "outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"], |
| 161 | + "outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44", |
| 162 | + "outaddr=4:DQHjpVccQymF9g4zFsxZzf1fN2dRDF4Bdg"], |
162 | 163 | "output_cmp": "txcreate1.hex", |
163 | 164 | "description": "Creates a new transaction with three inputs and two outputs" |
164 | 165 | }, |
165 | 166 | { "exec": "./digibyte-tx", |
166 | 167 | "args": |
167 | 168 | ["-json", |
168 | 169 | "-create", |
| 170 | + "nversion=2", |
169 | 171 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
170 | 172 | "in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18", |
171 | 173 | "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1", |
172 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
173 | | - "outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"], |
| 174 | + "outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44", |
| 175 | + "outaddr=4:DQHjpVccQymF9g4zFsxZzf1fN2dRDF4Bdg"], |
174 | 176 | "output_cmp": "txcreate1.json", |
175 | 177 | "description": "Creates a new transaction with three inputs and two outputs (output in json)" |
176 | 178 | }, |
177 | 179 | { "exec": "./digibyte-tx", |
178 | | - "args": ["-create", "outscript=0:"], |
| 180 | + "args": ["-create", "outscript=0:", "nversion=2"], |
179 | 181 | "output_cmp": "txcreate2.hex", |
180 | 182 | "description": "Creates a new transaction with a single empty output script" |
181 | 183 | }, |
182 | 184 | { "exec": "./digibyte-tx", |
183 | | - "args": ["-json", "-create", "outscript=0:"], |
| 185 | + "args": ["-json", "-create", "nversion=2", "outscript=0:"], |
184 | 186 | "output_cmp": "txcreate2.json", |
185 | 187 | "description": "Creates a new transaction with a single empty output script (output in json)" |
186 | 188 | }, |
187 | 189 | { "exec": "./digibyte-tx", |
188 | | - "args": ["02000000000100000000000000000000000000"], |
| 190 | + "args": ["02000000000100000000000000000000000000", "nversion=2"], |
189 | 191 | "output_cmp": "txcreate2.hex", |
190 | 192 | "description": "Parses a transaction with no inputs and a single output script" |
191 | 193 | }, |
|
236 | 238 | }, |
237 | 239 | { "exec": "./digibyte-tx", |
238 | 240 | "args": |
239 | | - ["-create", "nversion=1", |
| 241 | + ["-create", |
240 | 242 | "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
241 | 243 | "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", |
242 | 244 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
243 | 245 | "sign=ALL", |
244 | | - "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], |
| 246 | + "outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"], |
245 | 247 | "output_cmp": "txcreatesignv1.hex", |
246 | 248 | "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction" |
247 | 249 | }, |
248 | 250 | { "exec": "./digibyte-tx", |
249 | 251 | "args": |
250 | 252 | ["-json", |
251 | | - "-create", "nversion=1", |
| 253 | + "-create", |
252 | 254 | "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
253 | 255 | "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", |
254 | 256 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
255 | 257 | "sign=ALL", |
256 | | - "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], |
| 258 | + "outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"], |
257 | 259 | "output_cmp": "txcreatesignv1.json", |
258 | 260 | "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction (output in json)" |
259 | 261 | }, |
260 | 262 | { "exec": "./digibyte-tx", |
261 | 263 | "args": |
262 | 264 | ["-create", |
| 265 | + "nversion=2", |
263 | 266 | "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
264 | 267 | "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", |
265 | 268 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
266 | 269 | "sign=ALL", |
267 | | - "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], |
| 270 | + "outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"], |
268 | 271 | "output_cmp": "txcreatesignv2.hex", |
269 | 272 | "description": "Creates a new transaction with a single input and a single output, and then signs the transaction" |
270 | 273 | }, |
|
275 | 278 | "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", |
276 | 279 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":\"0foo\",\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
277 | 280 | "sign=ALL", |
278 | | - "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], |
| 281 | + "outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"], |
279 | 282 | "return_code": 1, |
280 | 283 | "error_txt": "error: prevtxs internal object typecheck fail", |
281 | 284 | "description": "Tests the check for invalid vout index in prevtxs for sign" |
|
345 | 348 | "args": |
346 | 349 | ["-create", |
347 | 350 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
348 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
| 351 | + "outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44", |
349 | 352 | "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
350 | 353 | "output_cmp": "txcreatedata1.hex", |
351 | 354 | "description": "Creates a new transaction with one input, one address output and one data output" |
|
355 | 358 | ["-json", |
356 | 359 | "-create", "nversion=1", |
357 | 360 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
358 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
| 361 | + "outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44", |
359 | 362 | "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
360 | 363 | "output_cmp": "txcreatedata1.json", |
361 | 364 | "description": "Creates a new v1 transaction with one input, one address output and one data output (output in json)" |
362 | 365 | }, |
363 | 366 | { "exec": "./digibyte-tx", |
364 | 367 | "args": |
365 | 368 | ["-create", |
| 369 | + "nversion=2", |
366 | 370 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
367 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
| 371 | + "outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44", |
368 | 372 | "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
369 | 373 | "output_cmp": "txcreatedata2.hex", |
370 | 374 | "description": "Creates a new transaction with one input, one address output and one data (zero value) output" |
|
373 | 377 | "args": |
374 | 378 | ["-json", |
375 | 379 | "-create", |
| 380 | + "nversion=2", |
376 | 381 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
377 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
| 382 | + "outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44", |
378 | 383 | "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
379 | 384 | "output_cmp": "txcreatedata2.json", |
380 | 385 | "description": "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)" |
381 | 386 | }, |
382 | 387 | { "exec": "./digibyte-tx", |
383 | 388 | "args": |
384 | 389 | ["-create", |
| 390 | + "nversion=2", |
385 | 391 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293", |
386 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"], |
| 392 | + "outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44"], |
387 | 393 | "output_cmp": "txcreatedata_seq0.hex", |
388 | 394 | "description": "Creates a new transaction with one input with sequence number and one address output" |
389 | 395 | }, |
390 | 396 | { "exec": "./digibyte-tx", |
391 | 397 | "args": |
392 | 398 | ["-json", |
393 | 399 | "-create", |
| 400 | + "nversion=2", |
394 | 401 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293", |
395 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"], |
| 402 | + "outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44"], |
396 | 403 | "output_cmp": "txcreatedata_seq0.json", |
397 | 404 | "description": "Creates a new transaction with one input with sequence number and one address output (output in json)" |
398 | 405 | }, |
|
452 | 459 | "description": "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH (output in json)" |
453 | 460 | }, |
454 | 461 | { "exec": "./digibyte-tx", |
455 | | - "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:S"], |
| 462 | + "args": ["-json", "-create", "nversion=2", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:S"], |
456 | 463 | "output_cmp": "txcreatemultisig5.json", |
457 | 464 | "description": "Uncompressed pubkeys should work just fine for non-witness outputs" |
458 | 465 | }, |
|
0 commit comments