Skip to content

Commit fa53d3d

Browse files
author
MarcoFalke
committed
test: Check that bitcoin-tx accepts whitespace around sequence id and multisig numbers
1 parent 8df7eee commit fa53d3d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,14 @@
523523
"output_cmp": "txcreatedata_seq0.hex",
524524
"description": "Creates a new transaction with one input with sequence number and one address output"
525525
},
526+
{ "exec": "./bitcoin-tx",
527+
"args":
528+
["-create",
529+
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0: 4294967293 ",
530+
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
531+
"output_cmp": "txcreatedata_seq0.hex",
532+
"description": "Creates a new transaction with one input with sequence number (+whitespace) and one address output"
533+
},
526534
{ "exec": "./bitcoin-tx",
527535
"args":
528536
["-json",
@@ -553,9 +561,9 @@
553561
"description": "Creates a new transaction with a single 2-of-3 multisig output"
554562
},
555563
{ "exec": "./bitcoin-tx",
556-
"args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485", "nversion=1"],
564+
"args": ["-json", "-create", "outmultisig=1: 2 : 3 :02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485", "nversion=1"],
557565
"output_cmp": "txcreatemultisig1.json",
558-
"description": "Creates a new transaction with a single 2-of-3 multisig output (output in json)"
566+
"description": "Creates a new transaction with a single 2-of-3 multisig output (with whitespace, output in json)"
559567
},
560568
{ "exec": "./bitcoin-tx",
561569
"args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S", "nversion=1"],

0 commit comments

Comments
 (0)