|
10 | 10 | "description": "Creates a blank v1 transaction (output in json)" |
11 | 11 | }, |
12 | 12 | { "exec": "./wagerr-tx", |
13 | | - "args": ["-"], |
14 | | - "input": "blanktxv2.hex", |
| 13 | + "args": ["-create", "nversion=2"], |
15 | 14 | "output_cmp": "blanktxv2.hex", |
16 | 15 | "description": "Creates a blank transaction when nothing is piped into wagerr-tx" |
17 | 16 | }, |
18 | 17 | { "exec": "./wagerr-tx", |
19 | | - "args": ["-json","-create"], |
| 18 | + "args": ["-json","-create", "nversion=2"], |
20 | 19 | "output_cmp": "blanktxv2.json", |
21 | 20 | "description": "Creates a blank transaction (output in json)" |
22 | 21 | }, |
|
121 | 120 | { "exec": "./wagerr-tx", |
122 | 121 | "args": |
123 | 122 | ["-create", |
124 | | - "outaddr=1:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw:garbage"], |
| 123 | + "outaddr=1:sU8uqD2gX6fm5eRvgUxPbRKpGJ24CMCSgE:garbage"], |
125 | 124 | "return_code": 1, |
126 | 125 | "error_txt": "error: TX output missing or too many separators", |
127 | 126 | "description": "Malformed outaddr argument (too many separators). Expected to fail." |
|
144 | 143 | }, |
145 | 144 | { "exec": "./wagerr-tx", |
146 | 145 | "args": |
147 | | - ["-create", |
| 146 | + ["-create", "nversion=2", |
148 | 147 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
149 | 148 | "in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18", |
150 | 149 | "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1", |
151 | | - "outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw", |
152 | | - "outaddr=4:XxppMBDQ6SiJrKcBrAy4WkkNdrxDBfzFdZ"], |
| 150 | + "outaddr=0.18:sM9JNsURmybh5x7VyXwHE7fCKduuZFMScN", |
| 151 | + "outaddr=4:sU8uqD2gX6fm5eRvgUxPbRKpGJ24CMCSgE"], |
153 | 152 | "output_cmp": "txcreate1.hex", |
154 | 153 | "description": "Creates a new transaction with three inputs and two outputs" |
155 | 154 | }, |
156 | 155 | { "exec": "./wagerr-tx", |
157 | 156 | "args": |
158 | 157 | ["-json", |
159 | | - "-create", |
| 158 | + "-create", "nversion=2", |
160 | 159 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
161 | 160 | "in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18", |
162 | 161 | "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1", |
163 | | - "outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw", |
164 | | - "outaddr=4:XxppMBDQ6SiJrKcBrAy4WkkNdrxDBfzFdZ"], |
| 162 | + "outaddr=0.18:sM9JNsURmybh5x7VyXwHE7fCKduuZFMScN", |
| 163 | + "outaddr=4:sU8uqD2gX6fm5eRvgUxPbRKpGJ24CMCSgE"], |
165 | 164 | "output_cmp": "txcreate1.json", |
166 | 165 | "description": "Creates a new transaction with three inputs and two outputs (output in json)" |
167 | 166 | }, |
|
186 | 185 | "description": "Create a new transaction with a single output script (OP_DROP) (output as json)" |
187 | 186 | }, |
188 | 187 | { "exec": "./wagerr-tx", |
189 | | - "args": ["-create", "outscript=0:OP_DROP:S", "nversion=1"], |
| 188 | + "args": ["-create", "outscript=0:OP_DROP:S", "nversion=2"], |
190 | 189 | "output_cmp": "txcreatescript2.hex", |
191 | 190 | "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH" |
192 | 191 | }, |
193 | 192 | { "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"], |
195 | 194 | "output_cmp": "txcreatescript2.json", |
196 | 195 | "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH (output as json)" |
197 | 196 | }, |
198 | 197 | { "exec": "./wagerr-tx", |
199 | | - "args": ["02000000000100000000000000000000000000"], |
| 198 | + "args": ["01000000000100000000000000000000000000"], |
200 | 199 | "output_cmp": "txcreate2.hex", |
201 | 200 | "description": "Parses a transaction with no inputs and a single output script" |
202 | 201 | }, |
203 | 202 | { "exec": "./wagerr-tx", |
204 | | - "args": ["-json", "02000000000100000000000000000000000000"], |
| 203 | + "args": ["-json", "01000000000100000000000000000000000000"], |
205 | 204 | "output_cmp": "txcreate2.json", |
206 | 205 | "description": "Parses a transaction with no inputs and a single output script (output in json)" |
207 | 206 | }, |
208 | 207 | { "exec": "./wagerr-tx", |
209 | 208 | "args": |
210 | 209 | ["-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\"}]", |
214 | 213 | "sign=ALL", |
215 | | - "outaddr=0.001:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"], |
| 214 | + "outaddr=0.001:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"], |
216 | 215 | "output_cmp": "txcreatesignv1.hex", |
217 | 216 | "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction" |
218 | 217 | }, |
219 | 218 | { "exec": "./wagerr-tx", |
220 | 219 | "args": |
221 | 220 | ["-json", |
222 | 221 | "-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\"}]", |
226 | 225 | "sign=ALL", |
227 | | - "outaddr=0.001:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"], |
| 226 | + "outaddr=0.001:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"], |
228 | 227 | "output_cmp": "txcreatesignv1.json", |
229 | 228 | "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction (output in json)" |
230 | 229 | }, |
231 | 230 | { "exec": "./wagerr-tx", |
232 | 231 | "args": |
233 | | - ["-create", |
| 232 | + ["-create", "nversion=2", |
234 | 233 | "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
235 | | - "set=privatekeys:[\"7qYrzJZWqnyCWMYswFcqaRJypGdVceudXPSxmZKsngN7fyo7aAV\"]", |
| 234 | + "set=privatekeys:[\"MncgKh8PvSYufYLQMankt6EsybFnw2SepY6A6ra3bdeTQEAhctWY\"]", |
236 | 235 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
237 | 236 | "sign=ALL", |
238 | | - "outaddr=0.001:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"], |
| 237 | + "outaddr=0.001:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"], |
239 | 238 | "output_cmp": "txcreatesignv2.hex", |
240 | 239 | "description": "Creates a new transaction with a single input and a single output, and then signs the transaction" |
241 | 240 | }, |
242 | 241 | { "exec": "./wagerr-tx", |
243 | 242 | "args": |
244 | | - ["-create", |
| 243 | + ["-create", "nversion=2", |
245 | 244 | "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
246 | | - "set=privatekeys:[\"7qYrzJZWqnyCWMYswFcqaRJypGdVceudXPSxmZKsngN7fyo7aAV\"]", |
| 245 | + "set=privatekeys:[\"MncgKh8PvSYufYLQMankt6EsybFnw2SepY6A6ra3bdeTQEAhctWY\"]", |
247 | 246 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":\"0foo\",\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
248 | 247 | "sign=ALL", |
249 | | - "outaddr=0.001:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"], |
| 248 | + "outaddr=0.001:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"], |
250 | 249 | "return_code": 1, |
251 | 250 | "error_txt": "error: prevtxs internal object typecheck fail", |
252 | 251 | "description": "Tests the check for invalid vout index in prevtxs for sign" |
|
285 | 284 | "args": |
286 | 285 | ["-create", |
287 | 286 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
288 | | - "outaddr=0.18:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk", |
| 287 | + "outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd", |
289 | 288 | "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
290 | 289 | "output_cmp": "txcreatedata1.hex", |
291 | 290 | "description": "Creates a new transaction with one input, one address output and one data output" |
|
295 | 294 | ["-json", |
296 | 295 | "-create", "nversion=1", |
297 | 296 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
298 | | - "outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw", |
| 297 | + "outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd", |
299 | 298 | "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
300 | 299 | "output_cmp": "txcreatedata1.json", |
301 | 300 | "description": "Creates a new v1 transaction with one input, one address output and one data output (output in json)" |
302 | 301 | }, |
303 | 302 | { "exec": "./wagerr-tx", |
304 | 303 | "args": |
305 | | - ["-create", |
| 304 | + ["-create", "nversion=2", |
306 | 305 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
307 | | - "outaddr=0.18:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk", |
| 306 | + "outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd", |
308 | 307 | "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
309 | 308 | "output_cmp": "txcreatedata2.hex", |
310 | 309 | "description": "Creates a new transaction with one input, one address output and one data (zero value) output" |
311 | 310 | }, |
312 | 311 | { "exec": "./wagerr-tx", |
313 | 312 | "args": |
314 | 313 | ["-json", |
315 | | - "-create", |
| 314 | + "-create", "nversion=2", |
316 | 315 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
317 | | - "outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw", |
| 316 | + "outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd", |
318 | 317 | "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
319 | 318 | "output_cmp": "txcreatedata2.json", |
320 | 319 | "description": "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)" |
321 | 320 | }, |
322 | 321 | { "exec": "./wagerr-tx", |
323 | 322 | "args": |
324 | | - ["-create", |
| 323 | + ["-create", "nversion=2", |
325 | 324 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293", |
326 | | - "outaddr=0.18:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"], |
| 325 | + "outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"], |
327 | 326 | "output_cmp": "txcreatedata_seq0.hex", |
328 | 327 | "description": "Creates a new transaction with one input with sequence number and one address output" |
329 | 328 | }, |
330 | 329 | { "exec": "./wagerr-tx", |
331 | 330 | "args": |
332 | 331 | ["-json", |
333 | | - "-create", |
| 332 | + "-create", "nversion=2", |
334 | 333 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293", |
335 | | - "outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw"], |
| 334 | + "outaddr=0.18:sT6CehN2zH33iyB92wzum4FJ7gVbwQo9Hd"], |
336 | 335 | "output_cmp": "txcreatedata_seq0.json", |
337 | 336 | "description": "Creates a new transaction with one input with sequence number and one address output (output in json)" |
338 | 337 | }, |
|
362 | 361 | "description": "Creates a new transaction with a single 2-of-3 multisig output (output in json)" |
363 | 362 | }, |
364 | 363 | { "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"], |
366 | 365 | "output_cmp": "txcreatemultisig2.hex", |
367 | 366 | "description": "Creates a new transaction with a single 2-of-3 multisig in a P2SH output" |
368 | 367 | }, |
369 | 368 | { "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"], |
371 | 370 | "output_cmp": "txcreatemultisig2.json", |
372 | 371 | "description": "Creates a new transaction with a single 2-of-3 multisig in a P2SH output (output in json)" |
373 | 372 | } |
|
0 commit comments