From b7e144bb731857106cae7c7d2d49d2ccc03b7ef1 Mon Sep 17 00:00:00 2001 From: jnewbery Date: Tue, 4 Oct 2016 15:40:41 -0400 Subject: Add test cases to test new bitcoin-tx functionality This commit add testcases to test the following functions in bitcoin-tx: - add a pay to non-standard script output - add a P2SH output - add a P2WSH output - add a P2WSH wrapped in a P2SH output - add a pay to pub key output - add a P2WPKH output - add a P2WPKH wrapped in a P2SH output - add a bare multisig output - add a multisig in P2SH output - add a multisig in a P2WSH output - add a multisig in a P2WSH wrapped in as P2SH output --- src/test/data/txcreatescript2.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/test/data/txcreatescript2.json (limited to 'src/test/data/txcreatescript2.json') diff --git a/src/test/data/txcreatescript2.json b/src/test/data/txcreatescript2.json new file mode 100644 index 000000000..41eb69f1a --- /dev/null +++ b/src/test/data/txcreatescript2.json @@ -0,0 +1,24 @@ +{ + "txid": "6e07a7cc075e0703f32ee8c4e5373fe654bfbc315148fda364e1be286ff290d0", + "hash": "6e07a7cc075e0703f32ee8c4e5373fe654bfbc315148fda364e1be286ff290d0", + "version": 1, + "locktime": 0, + "vin": [ + ], + "vout": [ + { + "value": 0.00, + "n": 0, + "scriptPubKey": { + "asm": "OP_HASH160 71ed53322d470bb96657deb786b94f97dd46fb15 OP_EQUAL", + "hex": "a91471ed53322d470bb96657deb786b94f97dd46fb1587", + "reqSigs": 1, + "type": "scripthash", + "addresses": [ + "3C5QarEGh9feKbDJ3QbMf2YNjnMoiPDhNp" + ] + } + } + ], + "hex": "010000000001000000000000000017a91471ed53322d470bb96657deb786b94f97dd46fb158700000000" +} -- cgit v1.2.3 From 277f207457aaa8bb89e61ef336a41c892b6d17a1 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Mon, 1 Jan 2018 16:29:58 +0000 Subject: Update dogecoin-tx tests (#1409) Update Python test address and key values to match Dogecoin format --- src/test/data/txcreatescript2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/data/txcreatescript2.json') diff --git a/src/test/data/txcreatescript2.json b/src/test/data/txcreatescript2.json index 41eb69f1a..8c24bf41b 100644 --- a/src/test/data/txcreatescript2.json +++ b/src/test/data/txcreatescript2.json @@ -15,7 +15,7 @@ "reqSigs": 1, "type": "scripthash", "addresses": [ - "3C5QarEGh9feKbDJ3QbMf2YNjnMoiPDhNp" + "A2pfKhJAmDYYDxamTYFmuAAkSMjqqvitJd" ] } } -- cgit v1.2.3