|
|
|
@ -416,6 +416,29 @@
|
|
|
|
|
"error_txt": "error: txid must be hexadecimal string (not '4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc5948512')",
|
|
|
|
|
"description": "Tests the check for invalid txid valid hex, but too long"
|
|
|
|
|
},
|
|
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
|
"args":
|
|
|
|
|
["-create",
|
|
|
|
|
"in=00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff:0",
|
|
|
|
|
"set=privatekeys:[\"KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn\"]",
|
|
|
|
|
"set=prevtxs:[{\"txid\":\"00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff\",\"vout\":0,\"amount\":\"0\", \"scriptPubKey\":\"0014751e76e8199196d454941c45d1b3a323f1433bd6\"}]",
|
|
|
|
|
"sign=ALL",
|
|
|
|
|
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
|
|
|
|
|
"output_cmp": "txcreatesignsegwit1.hex",
|
|
|
|
|
"description": "Creates a new transaction with a single witness input and a single output, and then signs the transaction"
|
|
|
|
|
},
|
|
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
|
"args":
|
|
|
|
|
["-create",
|
|
|
|
|
"in=00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff:0",
|
|
|
|
|
"set=privatekeys:[\"KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn\"]",
|
|
|
|
|
"set=prevtxs:[{\"txid\":\"00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff\",\"vout\":0,\"scriptPubKey\":\"0014751e76e8199196d454941c45d1b3a323f1433bd6\"}]",
|
|
|
|
|
"sign=ALL",
|
|
|
|
|
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
|
|
|
|
|
"return_code": 1,
|
|
|
|
|
"error_txt": "Missing amount for CTxOut with scriptPubKey=0014751e76e8199196d454941c45d1b3a323f1433bd6",
|
|
|
|
|
"description": "Tests the check for missing input amount for witness transactions"
|
|
|
|
|
},
|
|
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
|
"args":
|
|
|
|
|
["-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397", "nversion=1"],
|
|
|
|
|