aboutsummaryrefslogtreecommitdiff
path: root/src/test/data/bitcoin-util-test.json
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2014-08-19 23:15:58 -0400
committerJeff Garzik <jgarzik@bitpay.com>2014-08-19 23:15:58 -0400
commitdf4d61e681df49d121c308b30dcba556aa544d7e (patch)
tree06b53fea171b2d0545f80bd6817b1bba5d9d6b4f /src/test/data/bitcoin-util-test.json
parent335e3a5c95165ed778e84757657da65b1358bdff (diff)
Add bitcoin-tx tests
Testing: delin, delout, locktime, and basic createrawtransaction-like functionality.
Diffstat (limited to 'src/test/data/bitcoin-util-test.json')
-rw-r--r--src/test/data/bitcoin-util-test.json29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/test/data/bitcoin-util-test.json b/src/test/data/bitcoin-util-test.json
index 16bcb44898..7db87d7c11 100644
--- a/src/test/data/bitcoin-util-test.json
+++ b/src/test/data/bitcoin-util-test.json
@@ -5,5 +5,34 @@
{ "exec": ["./bitcoin-tx", "-"],
"input": "blanktx.hex",
"output_cmp": "blanktx.hex"
+ },
+ { "exec": ["./bitcoin-tx", "-", "delin=1"],
+ "input": "tx394b54bb.hex",
+ "output_cmp": "tt-delin1-out.hex"
+ },
+ { "exec": ["./bitcoin-tx", "-", "delin=31"],
+ "input": "tx394b54bb.hex",
+ "return_code": 1
+ },
+ { "exec": ["./bitcoin-tx", "-", "delout=1"],
+ "input": "tx394b54bb.hex",
+ "output_cmp": "tt-delout1-out.hex"
+ },
+ { "exec": ["./bitcoin-tx", "-", "delout=2"],
+ "input": "tx394b54bb.hex",
+ "return_code": 1
+ },
+ { "exec": ["./bitcoin-tx", "-", "locktime=317000"],
+ "input": "tx394b54bb.hex",
+ "output_cmp": "tt-locktime317000-out.hex"
+ },
+ { "exec":
+ ["./bitcoin-tx", "-create",
+ "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
+ "in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
+ "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
+ "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
+ "outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
+ "output_cmp": "txcreate1.hex"
}
]