|
515 | 515 | "output_cmp": "txcreatedata2.json",
|
516 | 516 | "description": "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)"
|
517 | 517 | },
|
| 518 | + { "exec": "./bitcoin-tx", |
| 519 | + "args": |
| 520 | + ["-create", |
| 521 | + "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:11aa"], |
| 522 | + "return_code": 1, |
| 523 | + "error_txt": "error: invalid TX sequence id '11aa'", |
| 524 | + "description": "Try to parse a sequence number outside the allowed range" |
| 525 | + }, |
| 526 | + { "exec": "./bitcoin-tx", |
| 527 | + "args": |
| 528 | + ["-create", |
| 529 | + "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:-1"], |
| 530 | + "return_code": 1, |
| 531 | + "error_txt": "error: invalid TX sequence id '-1'", |
| 532 | + "description": "Try to parse a sequence number outside the allowed range" |
| 533 | + }, |
| 534 | + { "exec": "./bitcoin-tx", |
| 535 | + "args": |
| 536 | + ["-create", |
| 537 | + "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967296"], |
| 538 | + "return_code": 1, |
| 539 | + "error_txt": "error: invalid TX sequence id '4294967296'", |
| 540 | + "description": "Try to parse a sequence number outside the allowed range" |
| 541 | + }, |
518 | 542 | { "exec": "./bitcoin-tx",
|
519 | 543 | "args":
|
520 | 544 | ["-create",
|
|
523 | 547 | "output_cmp": "txcreatedata_seq0.hex",
|
524 | 548 | "description": "Creates a new transaction with one input with sequence number and one address output"
|
525 | 549 | },
|
| 550 | + { "exec": "./bitcoin-tx", |
| 551 | + "args": |
| 552 | + ["-create", |
| 553 | + "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0: 4294967293 ", |
| 554 | + "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"], |
| 555 | + "output_cmp": "txcreatedata_seq0.hex", |
| 556 | + "description": "Creates a new transaction with one input with sequence number (+whitespace) and one address output" |
| 557 | + }, |
526 | 558 | { "exec": "./bitcoin-tx",
|
527 | 559 | "args":
|
528 | 560 | ["-json",
|
|
547 | 579 | "output_cmp": "txcreatedata_seq1.json",
|
548 | 580 | "description": "Adds a new input with sequence number to a transaction (output in json)"
|
549 | 581 | },
|
| 582 | + { "exec": "./bitcoin-tx", |
| 583 | + "args": ["-create", "outmultisig=1:-2:3:02a5:021:02df", "nversion=1"], |
| 584 | + "return_code": 1, |
| 585 | + "error_txt": "error: invalid multisig required number '-2'", |
| 586 | + "description": "Try to parse a multisig number outside the allowed range" |
| 587 | + }, |
| 588 | + { "exec": "./bitcoin-tx", |
| 589 | + "args": ["-create", "outmultisig=1:2:3a:02a5:021:02df", "nversion=1"], |
| 590 | + "return_code": 1, |
| 591 | + "error_txt": "error: invalid multisig total number '3a'", |
| 592 | + "description": "Try to parse a multisig number outside the allowed range" |
| 593 | + }, |
550 | 594 | { "exec": "./bitcoin-tx",
|
551 | 595 | "args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485", "nversion=1"],
|
552 | 596 | "output_cmp": "txcreatemultisig1.hex",
|
553 | 597 | "description": "Creates a new transaction with a single 2-of-3 multisig output"
|
554 | 598 | },
|
555 | 599 | { "exec": "./bitcoin-tx",
|
556 |
| - "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485", "nversion=1"], |
| 600 | + "args": ["-json", "-create", "outmultisig=1: 2 : 3 :02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485", "nversion=1"], |
557 | 601 | "output_cmp": "txcreatemultisig1.json",
|
558 |
| - "description": "Creates a new transaction with a single 2-of-3 multisig output (output in json)" |
| 602 | + "description": "Creates a new transaction with a single 2-of-3 multisig output (with whitespace, output in json)" |
559 | 603 | },
|
560 | 604 | { "exec": "./bitcoin-tx",
|
561 | 605 | "args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S", "nversion=1"],
|
|
0 commit comments