diff options
| author | Jeff Garzik <[email protected]> | 2014-12-31 08:57:55 -0500 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2014-12-31 08:57:55 -0500 |
| commit | 39d6b5fd42bda89f83ea26d6b0226eb7f76eb3c6 (patch) | |
| tree | 88248508e96ac6974b5f0f4ebaa9daa2271d2aec /src/test/data | |
| parent | Merge #5578 from (diff) | |
| parent | bitcoin-tx: Add test case for signing a tx (diff) | |
| download | discoin-39d6b5fd42bda89f83ea26d6b0226eb7f76eb3c6.tar.xz discoin-39d6b5fd42bda89f83ea26d6b0226eb7f76eb3c6.zip | |
Merge #5528 from
branch 'bitcoin-tx-copy-paste' of git://github.com/ers35/bitcoin into merge-5528
Diffstat (limited to 'src/test/data')
| -rw-r--r-- | src/test/data/bitcoin-util-test.json | 10 | ||||
| -rw-r--r-- | src/test/data/txcreatesign.hex | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/test/data/bitcoin-util-test.json b/src/test/data/bitcoin-util-test.json index f8424b72a..6090421cb 100644 --- a/src/test/data/bitcoin-util-test.json +++ b/src/test/data/bitcoin-util-test.json @@ -46,5 +46,15 @@ { "exec": "./bitcoin-tx", "args": ["-create", "outscript=0:"], "output_cmp": "txcreate2.hex" + }, + { "exec": "./bitcoin-tx", + "args": + ["-create", + "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", + "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", + "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\"}]", + "sign=ALL", + "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], + "output_cmp": "txcreatesign.hex" } ] diff --git a/src/test/data/txcreatesign.hex b/src/test/data/txcreatesign.hex new file mode 100644 index 000000000..56ce28a86 --- /dev/null +++ b/src/test/data/txcreatesign.hex @@ -0,0 +1 @@ +01000000018594c5bdcaec8f06b78b596f31cd292a294fd031e24eec716f43dac91ea7494d0000000000ffffffff01a0860100000000001976a9145834479edbbe0539b31ffd3a8f8ebadc2165ed0188ac00000000 |