Skip to content

Commit 880eec5

Browse files
bytzckwagerr-builder
authored andcommitted
test/util checks for make check now working (dashpay#31)
1 parent 52c1a51 commit 880eec5

23 files changed

+95
-96
lines changed

test/util/data/bitcoin-util-test.json

Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
"description": "Creates a blank v1 transaction (output in json)"
1111
},
1212
{ "exec": "./wagerr-tx",
13-
"args": ["-"],
14-
"input": "blanktxv2.hex",
13+
"args": ["-create", "nversion=2"],
1514
"output_cmp": "blanktxv2.hex",
1615
"description": "Creates a blank transaction when nothing is piped into wagerr-tx"
1716
},
1817
{ "exec": "./wagerr-tx",
19-
"args": ["-json","-create"],
18+
"args": ["-json","-create", "nversion=2"],
2019
"output_cmp": "blanktxv2.json",
2120
"description": "Creates a blank transaction (output in json)"
2221
},
@@ -121,7 +120,7 @@
121120
{ "exec": "./wagerr-tx",
122121
"args":
123122
["-create",
124-
"outaddr=1:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw:garbage"],
123+
"outaddr=1:sU8uqD2gX6fm5eRvgUxPbRKpGJ24CMCSgE:garbage"],
125124
"return_code": 1,
126125
"error_txt": "error: TX output missing or too many separators",
127126
"description": "Malformed outaddr argument (too many separators). Expected to fail."
@@ -144,24 +143,24 @@
144143
},
145144
{ "exec": "./wagerr-tx",
146145
"args":
147-
["-create",
146+
["-create", "nversion=2",
148147
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
149148
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
150149
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
151-
"outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw",
152-
"outaddr=4:XxppMBDQ6SiJrKcBrAy4WkkNdrxDBfzFdZ"],
150+
"outaddr=0.18:sM9JNsURmybh5x7VyXwHE7fCKduuZFMScN",
151+
"outaddr=4:sU8uqD2gX6fm5eRvgUxPbRKpGJ24CMCSgE"],
153152
"output_cmp": "txcreate1.hex",
154153
"description": "Creates a new transaction with three inputs and two outputs"
155154
},
156155
{ "exec": "./wagerr-tx",
157156
"args":
158157
["-json",
159-
"-create",
158+
"-create", "nversion=2",
160159
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
161160
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
162161
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
163-
"outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw",
164-
"outaddr=4:XxppMBDQ6SiJrKcBrAy4WkkNdrxDBfzFdZ"],
162+
"outaddr=0.18:sM9JNsURmybh5x7VyXwHE7fCKduuZFMScN",
163+
"outaddr=4:sU8uqD2gX6fm5eRvgUxPbRKpGJ24CMCSgE"],
165164
"output_cmp": "txcreate1.json",
166165
"description": "Creates a new transaction with three inputs and two outputs (output in json)"
167166
},
@@ -186,67 +185,67 @@
186185
"description": "Create a new transaction with a single output script (OP_DROP) (output as json)"
187186
},
188187
{ "exec": "./wagerr-tx",
189-
"args": ["-create", "outscript=0:OP_DROP:S", "nversion=1"],
188+
"args": ["-create", "outscript=0:OP_DROP:S", "nversion=2"],
190189
"output_cmp": "txcreatescript2.hex",
191190
"description": "Create a new transaction with a single output script (OP_DROP) in a P2SH"
192191
},
193192
{ "exec": "./wagerr-tx",
194-
"args": ["-json", "-create", "outscript=0:OP_DROP:S", "nversion=1"],
193+
"args": ["-json", "-create", "outscript=0:OP_DROP:S", "nversion=2"],
195194
"output_cmp": "txcreatescript2.json",
196195
"description": "Create a new transaction with a single output script (OP_DROP) in a P2SH (output as json)"
197196
},
198197
{ "exec": "./wagerr-tx",
199-
"args": ["02000000000100000000000000000000000000"],
198+
"args": ["01000000000100000000000000000000000000"],
200199
"output_cmp": "txcreate2.hex",
201200
"description": "Parses a transaction with no inputs and a single output script"
202201
},
203202
{ "exec": "./wagerr-tx",
204-
"args": ["-json", "02000000000100000000000000000000000000"],
203+
"args": ["-json", "01000000000100000000000000000000000000"],
205204
"output_cmp": "txcreate2.json",
206205
"description": "Parses a transaction with no inputs and a single output script (output in json)"
207206
},
208207
{ "exec": "./wagerr-tx",
209208
"args":
210209
["-create", "nversion=1",
211-
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
212-
"set=privatekeys:[\"7qYrzJZWqnyCWMYswFcqaRJypGdVceudXPSxmZKsngN7fyo7aAV\"]",
213-
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
210+
"in=924492787e3c43699a845d4cd2bdaea95fa3db81943b0b4325ac07e275bdcb38:0",
211+
"set=privatekeys:[\"MncgKh8PvSYufYLQMankt6EsybFnw2SepY6A6ra3bdeTQEAhctWY\"]",
212+
"set=prevtxs:[{\"txid\":\"d71b9105d185de8b0859d4a85694f3dab19aad401de7c7c52f96ff464af35559\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
214213
"sign=ALL",
215-
"outaddr=0.001:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"],
214+
"outaddr=0.001:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"],
216215
"output_cmp": "txcreatesignv1.hex",
217216
"description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction"
218217
},
219218
{ "exec": "./wagerr-tx",
220219
"args":
221220
["-json",
222221
"-create", "nversion=1",
223-
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
224-
"set=privatekeys:[\"7qYrzJZWqnyCWMYswFcqaRJypGdVceudXPSxmZKsngN7fyo7aAV\"]",
225-
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
222+
"in=924492787e3c43699a845d4cd2bdaea95fa3db81943b0b4325ac07e275bdcb38:0",
223+
"set=privatekeys:[\"MncgKh8PvSYufYLQMankt6EsybFnw2SepY6A6ra3bdeTQEAhctWY\"]",
224+
"set=prevtxs:[{\"txid\":\"d71b9105d185de8b0859d4a85694f3dab19aad401de7c7c52f96ff464af35559\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
226225
"sign=ALL",
227-
"outaddr=0.001:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"],
226+
"outaddr=0.001:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"],
228227
"output_cmp": "txcreatesignv1.json",
229228
"description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction (output in json)"
230229
},
231230
{ "exec": "./wagerr-tx",
232231
"args":
233-
["-create",
232+
["-create", "nversion=2",
234233
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
235-
"set=privatekeys:[\"7qYrzJZWqnyCWMYswFcqaRJypGdVceudXPSxmZKsngN7fyo7aAV\"]",
234+
"set=privatekeys:[\"MncgKh8PvSYufYLQMankt6EsybFnw2SepY6A6ra3bdeTQEAhctWY\"]",
236235
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
237236
"sign=ALL",
238-
"outaddr=0.001:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"],
237+
"outaddr=0.001:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"],
239238
"output_cmp": "txcreatesignv2.hex",
240239
"description": "Creates a new transaction with a single input and a single output, and then signs the transaction"
241240
},
242241
{ "exec": "./wagerr-tx",
243242
"args":
244-
["-create",
243+
["-create", "nversion=2",
245244
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
246-
"set=privatekeys:[\"7qYrzJZWqnyCWMYswFcqaRJypGdVceudXPSxmZKsngN7fyo7aAV\"]",
245+
"set=privatekeys:[\"MncgKh8PvSYufYLQMankt6EsybFnw2SepY6A6ra3bdeTQEAhctWY\"]",
247246
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":\"0foo\",\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
248247
"sign=ALL",
249-
"outaddr=0.001:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"],
248+
"outaddr=0.001:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"],
250249
"return_code": 1,
251250
"error_txt": "error: prevtxs internal object typecheck fail",
252251
"description": "Tests the check for invalid vout index in prevtxs for sign"
@@ -285,7 +284,7 @@
285284
"args":
286285
["-create",
287286
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
288-
"outaddr=0.18:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk",
287+
"outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd",
289288
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
290289
"output_cmp": "txcreatedata1.hex",
291290
"description": "Creates a new transaction with one input, one address output and one data output"
@@ -295,44 +294,44 @@
295294
["-json",
296295
"-create", "nversion=1",
297296
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
298-
"outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw",
297+
"outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd",
299298
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
300299
"output_cmp": "txcreatedata1.json",
301300
"description": "Creates a new v1 transaction with one input, one address output and one data output (output in json)"
302301
},
303302
{ "exec": "./wagerr-tx",
304303
"args":
305-
["-create",
304+
["-create", "nversion=2",
306305
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
307-
"outaddr=0.18:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk",
306+
"outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd",
308307
"outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
309308
"output_cmp": "txcreatedata2.hex",
310309
"description": "Creates a new transaction with one input, one address output and one data (zero value) output"
311310
},
312311
{ "exec": "./wagerr-tx",
313312
"args":
314313
["-json",
315-
"-create",
314+
"-create", "nversion=2",
316315
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
317-
"outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw",
316+
"outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd",
318317
"outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
319318
"output_cmp": "txcreatedata2.json",
320319
"description": "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)"
321320
},
322321
{ "exec": "./wagerr-tx",
323322
"args":
324-
["-create",
323+
["-create", "nversion=2",
325324
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
326-
"outaddr=0.18:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"],
325+
"outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"],
327326
"output_cmp": "txcreatedata_seq0.hex",
328327
"description": "Creates a new transaction with one input with sequence number and one address output"
329328
},
330329
{ "exec": "./wagerr-tx",
331330
"args":
332331
["-json",
333-
"-create",
332+
"-create", "nversion=2",
334333
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
335-
"outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw"],
334+
"outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"],
336335
"output_cmp": "txcreatedata_seq0.json",
337336
"description": "Creates a new transaction with one input with sequence number and one address output (output in json)"
338337
},
@@ -362,12 +361,12 @@
362361
"description": "Creates a new transaction with a single 2-of-3 multisig output (output in json)"
363362
},
364363
{ "exec": "./wagerr-tx",
365-
"args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S", "nversion=1"],
364+
"args": ["-create", "nversion=2", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S", "nversion=1"],
366365
"output_cmp": "txcreatemultisig2.hex",
367366
"description": "Creates a new transaction with a single 2-of-3 multisig in a P2SH output"
368367
},
369368
{ "exec": "./wagerr-tx",
370-
"args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S", "nversion=1"],
369+
"args": ["-json", "-create", "nversion=2", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S", "nversion=1"],
371370
"output_cmp": "txcreatemultisig2.json",
372371
"description": "Creates a new transaction with a single 2-of-3 multisig in a P2SH output (output in json)"
373372
}

test/util/data/tt-delin1-out.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
"reqSigs": 1,
198198
"type": "pubkeyhash",
199199
"addresses": [
200-
"XooH6vpTCuVowS9vmJowNaNGcJQ3cQT7rs"
200+
"sXMqMFRZzkCk1fzAxs8Z8ihpT22GSZ7SA9"
201201
]
202202
}
203203
},
@@ -211,7 +211,7 @@
211211
"reqSigs": 1,
212212
"type": "pubkeyhash",
213213
"addresses": [
214-
"XkaMatRZjFxq1QbgUvdmqGzGRaPqSLvvS6"
214+
"sU8uqD2gX6fm5eRvgUxPbRKpGJ24CMCSgE"
215215
]
216216
}
217217
}

test/util/data/tt-delout1-out.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
"reqSigs": 1,
207207
"type": "pubkeyhash",
208208
"addresses": [
209-
"XooH6vpTCuVowS9vmJowNaNGcJQ3cQT7rs"
209+
"sXMqMFRZzkCk1fzAxs8Z8ihpT22GSZ7SA9"
210210
]
211211
}
212212
}

test/util/data/tt-locktime317000-out.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
"reqSigs": 1,
207207
"type": "pubkeyhash",
208208
"addresses": [
209-
"XooH6vpTCuVowS9vmJowNaNGcJQ3cQT7rs"
209+
"sXMqMFRZzkCk1fzAxs8Z8ihpT22GSZ7SA9"
210210
]
211211
}
212212
},
@@ -220,7 +220,7 @@
220220
"reqSigs": 1,
221221
"type": "pubkeyhash",
222222
"addresses": [
223-
"XkaMatRZjFxq1QbgUvdmqGzGRaPqSLvvS6"
223+
"sU8uqD2gX6fm5eRvgUxPbRKpGJ24CMCSgE"
224224
]
225225
}
226226
}

test/util/data/txcreate1.hex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
02000000031f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff7cca453133921c50d5025878f7f738d1df891fd359763331935784cf6b9c82bf1200000000fffffffffccd319e04a996c96cfc0bf4c07539aa90bd0b1a700ef72fae535d6504f9a6220100000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0084d717000000001976a914f2d4db28cad6502226ee484ae24505c2885cb12d88ac00000000
1+
02000000031f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff7cca453133921c50d5025878f7f738d1df891fd359763331935784cf6b9c82bf1200000000fffffffffccd319e04a996c96cfc0bf4c07539aa90bd0b1a700ef72fae535d6504f9a6220100000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0084d717000000001976a9146c772e9cf96371bba3da8cb733da70a2fcf2007888ac00000000

test/util/data/txcreate1.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"txid": "fe7d174f42dce0cffa7a527e9bc8368956057619ec817648f6138b98f2533e8f",
2+
"txid": "f15ddc8d255c377453ade78873ff567ca62273a7785924c41edd4e4b1bcb0b16",
33
"version": 2,
44
"type": 0,
55
"size": 201,
@@ -44,7 +44,7 @@
4444
"reqSigs": 1,
4545
"type": "pubkeyhash",
4646
"addresses": [
47-
"Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw"
47+
"sM9JNsURmybh5x7VyXwHE7fCKduuZFMScN"
4848
]
4949
}
5050
},
@@ -53,15 +53,15 @@
5353
"valueSat": 400000000,
5454
"n": 1,
5555
"scriptPubKey": {
56-
"asm": "OP_DUP OP_HASH160 f2d4db28cad6502226ee484ae24505c2885cb12d OP_EQUALVERIFY OP_CHECKSIG",
57-
"hex": "76a914f2d4db28cad6502226ee484ae24505c2885cb12d88ac",
56+
"asm": "OP_DUP OP_HASH160 6c772e9cf96371bba3da8cb733da70a2fcf20078 OP_EQUALVERIFY OP_CHECKSIG",
57+
"hex": "76a9146c772e9cf96371bba3da8cb733da70a2fcf2007888ac",
5858
"reqSigs": 1,
5959
"type": "pubkeyhash",
6060
"addresses": [
61-
"XxppMBDQ6SiJrKcBrAy4WkkNdrxDBfzFdZ"
61+
"sU8uqD2gX6fm5eRvgUxPbRKpGJ24CMCSgE"
6262
]
6363
}
6464
}
6565
],
66-
"hex": "02000000031f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff7cca453133921c50d5025878f7f738d1df891fd359763331935784cf6b9c82bf1200000000fffffffffccd319e04a996c96cfc0bf4c07539aa90bd0b1a700ef72fae535d6504f9a6220100000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0084d717000000001976a914f2d4db28cad6502226ee484ae24505c2885cb12d88ac00000000"
66+
"hex": "02000000031f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff7cca453133921c50d5025878f7f738d1df891fd359763331935784cf6b9c82bf1200000000fffffffffccd319e04a996c96cfc0bf4c07539aa90bd0b1a700ef72fae535d6504f9a6220100000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0084d717000000001976a9146c772e9cf96371bba3da8cb733da70a2fcf2007888ac00000000"
6767
}

test/util/data/txcreate2.hex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
02000000000100000000000000000000000000
1+
01000000000100000000000000000000000000

test/util/data/txcreate2.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"txid": "0481afb29931341d0d7861d8a2f6f26456fa042abf54a23e96440ed7946e0715",
3-
"version": 2,
2+
"txid": "cf90229625e9eb10f6be8156bf6aa5ec2eca19a42b1e05c11f3029b560a32e13",
3+
"version": 1,
44
"type": 0,
55
"size": 19,
66
"locktime": 0,
@@ -18,5 +18,5 @@
1818
}
1919
}
2020
],
21-
"hex": "02000000000100000000000000000000000000"
21+
"hex": "01000000000100000000000000000000000000"
2222
}

test/util/data/txcreatedata1.hex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
02000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a9145834479edbbe0539b31ffd3a8f8ebadc2165ed0188ac0084d71700000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000
1+
01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a91460fbd9176baf3fe58146be1b19264aec63027dff88ac0084d71700000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000

test/util/data/txcreatedata1.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"txid": "07894b4d12fe7853dd911402db1620920d261b9627c447f931417d330c25f06e",
2+
"txid": "9dd61dac026b956f9b7dbdac3bb6f2d3361347031953173097057cba5f0f49a8",
33
"version": 1,
44
"type": 0,
55
"size": 176,
@@ -21,12 +21,12 @@
2121
"valueSat": 18000000,
2222
"n": 0,
2323
"scriptPubKey": {
24-
"asm": "OP_DUP OP_HASH160 1fc11f39be1729bf973a7ab6a615ca4729d64574 OP_EQUALVERIFY OP_CHECKSIG",
25-
"hex": "76a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac",
24+
"asm": "OP_DUP OP_HASH160 60fbd9176baf3fe58146be1b19264aec63027dff OP_EQUALVERIFY OP_CHECKSIG",
25+
"hex": "76a91460fbd9176baf3fe58146be1b19264aec63027dff88ac",
2626
"reqSigs": 1,
2727
"type": "pubkeyhash",
2828
"addresses": [
29-
"Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw"
29+
"sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"
3030
]
3131
}
3232
},
@@ -41,5 +41,5 @@
4141
}
4242
}
4343
],
44-
"hex": "01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0084d71700000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000"
44+
"hex": "01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a91460fbd9176baf3fe58146be1b19264aec63027dff88ac0084d71700000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000"
4545
}

0 commit comments

Comments
 (0)