Skip to content

Commit

Permalink
Fixed digibyte-util-test
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartArray committed Apr 17, 2021
1 parent 1cb4d6b commit c9a9cb2
Show file tree
Hide file tree
Showing 27 changed files with 87 additions and 80 deletions.
51 changes: 29 additions & 22 deletions test/util/data/digibyte-util-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"description": "Creates a blank transaction when nothing is piped into digibyte-tx"
},
{ "exec": "./digibyte-tx",
"args": ["-json","-create"],
"args": ["-json","-create","nversion=2"],
"output_cmp": "blanktxv2.json",
"description": "Creates a blank transaction (output in json)"
},
Expand Down Expand Up @@ -130,7 +130,7 @@
{ "exec": "./digibyte-tx",
"args":
["-create",
"outaddr=1:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o:garbage"],
"outaddr=1:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44:garbage"],
"return_code": 1,
"error_txt": "error: TX output missing or too many separators",
"description": "Malformed outaddr argument (too many separators). Expected to fail."
Expand All @@ -154,38 +154,40 @@
{ "exec": "./digibyte-tx",
"args":
["-create",
"nversion=2",
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
"outaddr=4:DQHjpVccQymF9g4zFsxZzf1fN2dRDF4Bdg"],
"output_cmp": "txcreate1.hex",
"description": "Creates a new transaction with three inputs and two outputs"
},
{ "exec": "./digibyte-tx",
"args":
["-json",
"-create",
"nversion=2",
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
"outaddr=4:DQHjpVccQymF9g4zFsxZzf1fN2dRDF4Bdg"],
"output_cmp": "txcreate1.json",
"description": "Creates a new transaction with three inputs and two outputs (output in json)"
},
{ "exec": "./digibyte-tx",
"args": ["-create", "outscript=0:"],
"args": ["-create", "outscript=0:", "nversion=2"],
"output_cmp": "txcreate2.hex",
"description": "Creates a new transaction with a single empty output script"
},
{ "exec": "./digibyte-tx",
"args": ["-json", "-create", "outscript=0:"],
"args": ["-json", "-create", "nversion=2", "outscript=0:"],
"output_cmp": "txcreate2.json",
"description": "Creates a new transaction with a single empty output script (output in json)"
},
{ "exec": "./digibyte-tx",
"args": ["02000000000100000000000000000000000000"],
"args": ["02000000000100000000000000000000000000", "nversion=2"],
"output_cmp": "txcreate2.hex",
"description": "Parses a transaction with no inputs and a single output script"
},
Expand Down Expand Up @@ -236,35 +238,36 @@
},
{ "exec": "./digibyte-tx",
"args":
["-create", "nversion=1",
["-create",
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
"sign=ALL",
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
"outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"],
"output_cmp": "txcreatesignv1.hex",
"description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction"
},
{ "exec": "./digibyte-tx",
"args":
["-json",
"-create", "nversion=1",
"-create",
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
"sign=ALL",
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
"outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"],
"output_cmp": "txcreatesignv1.json",
"description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction (output in json)"
},
{ "exec": "./digibyte-tx",
"args":
["-create",
"nversion=2",
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
"sign=ALL",
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
"outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"],
"output_cmp": "txcreatesignv2.hex",
"description": "Creates a new transaction with a single input and a single output, and then signs the transaction"
},
Expand All @@ -275,7 +278,7 @@
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":\"0foo\",\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
"sign=ALL",
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
"outaddr=0.001:DRdFhX5DamBnxgF8rTiRdUwLjt3xHRFLe4"],
"return_code": 1,
"error_txt": "error: prevtxs internal object typecheck fail",
"description": "Tests the check for invalid vout index in prevtxs for sign"
Expand Down Expand Up @@ -345,7 +348,7 @@
"args":
["-create",
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
"output_cmp": "txcreatedata1.hex",
"description": "Creates a new transaction with one input, one address output and one data output"
Expand All @@ -355,16 +358,17 @@
["-json",
"-create", "nversion=1",
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
"output_cmp": "txcreatedata1.json",
"description": "Creates a new v1 transaction with one input, one address output and one data output (output in json)"
},
{ "exec": "./digibyte-tx",
"args":
["-create",
"nversion=2",
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
"outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
"output_cmp": "txcreatedata2.hex",
"description": "Creates a new transaction with one input, one address output and one data (zero value) output"
Expand All @@ -373,26 +377,29 @@
"args":
["-json",
"-create",
"nversion=2",
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44",
"outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
"output_cmp": "txcreatedata2.json",
"description": "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)"
},
{ "exec": "./digibyte-tx",
"args":
["-create",
"nversion=2",
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44"],
"output_cmp": "txcreatedata_seq0.hex",
"description": "Creates a new transaction with one input with sequence number and one address output"
},
{ "exec": "./digibyte-tx",
"args":
["-json",
"-create",
"nversion=2",
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
"outaddr=0.18:D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44"],
"output_cmp": "txcreatedata_seq0.json",
"description": "Creates a new transaction with one input with sequence number and one address output (output in json)"
},
Expand Down Expand Up @@ -452,7 +459,7 @@
"description": "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH (output in json)"
},
{ "exec": "./digibyte-tx",
"args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:S"],
"args": ["-json", "-create", "nversion=2", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:S"],
"output_cmp": "txcreatemultisig5.json",
"description": "Uncompressed pubkeys should work just fine for non-witness outputs"
},
Expand Down
4 changes: 2 additions & 2 deletions test/util/data/tt-delin1-out.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1E7SGgAZFCHDnVZLuRViX3gUmxpMfdvd2o"
"DJFXow7CYcBWKVjwe1VH4or5f6YetLH1hw"
]
}
},
Expand All @@ -211,7 +211,7 @@
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1AtWkdmfmYkErU16d3KYykJUbEp9MAj9Sb"
"DF2cHtiK4xeXPUBhMdK7XWU5UNYSg2KFvt"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/util/data/tt-delout1-out.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1E7SGgAZFCHDnVZLuRViX3gUmxpMfdvd2o"
"DJFXow7CYcBWKVjwe1VH4or5f6YetLH1hw"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/util/data/tt-locktime317000-out.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1E7SGgAZFCHDnVZLuRViX3gUmxpMfdvd2o"
"DJFXow7CYcBWKVjwe1VH4or5f6YetLH1hw"
]
}
},
Expand All @@ -220,7 +220,7 @@
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1AtWkdmfmYkErU16d3KYykJUbEp9MAj9Sb"
"DF2cHtiK4xeXPUBhMdK7XWU5UNYSg2KFvt"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/util/data/txcreate1.hex
Original file line number Diff line number Diff line change
@@ -1 +1 @@
02000000031f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff7cca453133921c50d5025878f7f738d1df891fd359763331935784cf6b9c82bf1200000000fffffffffccd319e04a996c96cfc0bf4c07539aa90bd0b1a700ef72fae535d6504f9a6220100000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0084d717000000001976a914f2d4db28cad6502226ee484ae24505c2885cb12d88ac00000000
02000000031f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff7cca453133921c50d5025878f7f738d1df891fd359763331935784cf6b9c82bf1200000000fffffffffccd319e04a996c96cfc0bf4c07539aa90bd0b1a700ef72fae535d6504f9a6220100000000ffffffff0280a81201000000001976a91415dd8f417866927d1c3ecc2b50f8bc58dd78f26788ac0084d717000000001976a914d20cd659614c3966e31d8a5cbc946ca2c4faded088ac00000000
18 changes: 9 additions & 9 deletions test/util/data/txcreate1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"txid": "fe7d174f42dce0cffa7a527e9bc8368956057619ec817648f6138b98f2533e8f",
"hash": "fe7d174f42dce0cffa7a527e9bc8368956057619ec817648f6138b98f2533e8f",
"txid": "3ea7582f1550c86bc8e4fc73325f9a98ac2502244c64efb5b47cedc34dff9529",
"hash": "3ea7582f1550c86bc8e4fc73325f9a98ac2502244c64efb5b47cedc34dff9529",
"version": 2,
"size": 201,
"vsize": 201,
Expand Down Expand Up @@ -40,28 +40,28 @@
"value": 0.18000000,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 1fc11f39be1729bf973a7ab6a615ca4729d64574 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac",
"asm": "OP_DUP OP_HASH160 15dd8f417866927d1c3ecc2b50f8bc58dd78f267 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91415dd8f417866927d1c3ecc2b50f8bc58dd78f26788ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"
"D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44"
]
}
},
{
"value": 4.00000000,
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 f2d4db28cad6502226ee484ae24505c2885cb12d OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914f2d4db28cad6502226ee484ae24505c2885cb12d88ac",
"asm": "OP_DUP OP_HASH160 d20cd659614c3966e31d8a5cbc946ca2c4faded0 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914d20cd659614c3966e31d8a5cbc946ca2c4faded088ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"
"DQHjpVccQymF9g4zFsxZzf1fN2dRDF4Bdg"
]
}
}
],
"hex": "02000000031f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff7cca453133921c50d5025878f7f738d1df891fd359763331935784cf6b9c82bf1200000000fffffffffccd319e04a996c96cfc0bf4c07539aa90bd0b1a700ef72fae535d6504f9a6220100000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0084d717000000001976a914f2d4db28cad6502226ee484ae24505c2885cb12d88ac00000000"
"hex": "02000000031f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff7cca453133921c50d5025878f7f738d1df891fd359763331935784cf6b9c82bf1200000000fffffffffccd319e04a996c96cfc0bf4c07539aa90bd0b1a700ef72fae535d6504f9a6220100000000ffffffff0280a81201000000001976a91415dd8f417866927d1c3ecc2b50f8bc58dd78f26788ac0084d717000000001976a914d20cd659614c3966e31d8a5cbc946ca2c4faded088ac00000000"
}
2 changes: 1 addition & 1 deletion test/util/data/txcreatedata1.hex
Original file line number Diff line number Diff line change
@@ -1 +1 @@
02000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0084d71700000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000
01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a91415dd8f417866927d1c3ecc2b50f8bc58dd78f26788ac0084d71700000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000
12 changes: 6 additions & 6 deletions test/util/data/txcreatedata1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"txid": "07894b4d12fe7853dd911402db1620920d261b9627c447f931417d330c25f06e",
"hash": "07894b4d12fe7853dd911402db1620920d261b9627c447f931417d330c25f06e",
"txid": "9111eb5913c8df0a7a83f7bc17806790eeae5f129dc9a0a03319941ffd6c8f10",
"hash": "9111eb5913c8df0a7a83f7bc17806790eeae5f129dc9a0a03319941ffd6c8f10",
"version": 1,
"size": 176,
"vsize": 176,
Expand All @@ -22,12 +22,12 @@
"value": 0.18000000,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 1fc11f39be1729bf973a7ab6a615ca4729d64574 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac",
"asm": "OP_DUP OP_HASH160 15dd8f417866927d1c3ecc2b50f8bc58dd78f267 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91415dd8f417866927d1c3ecc2b50f8bc58dd78f26788ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"
"D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44"
]
}
},
Expand All @@ -41,5 +41,5 @@
}
}
],
"hex": "01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0084d71700000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000"
"hex": "01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a91415dd8f417866927d1c3ecc2b50f8bc58dd78f26788ac0084d71700000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000"
}
2 changes: 1 addition & 1 deletion test/util/data/txcreatedata2.hex
Original file line number Diff line number Diff line change
@@ -1 +1 @@
02000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0000000000000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000
02000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a91415dd8f417866927d1c3ecc2b50f8bc58dd78f26788ac0000000000000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000
12 changes: 6 additions & 6 deletions test/util/data/txcreatedata2.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"txid": "c14b007fa3a6c1e7765919c1d14c1cfc2b8642c3a5d3be4b1fa8c4ccfec98bb0",
"hash": "c14b007fa3a6c1e7765919c1d14c1cfc2b8642c3a5d3be4b1fa8c4ccfec98bb0",
"txid": "b43b3b4a75071e3898425a0179843c8eaddcd03bbf675dc31e0dc6d3c8df15b5",
"hash": "b43b3b4a75071e3898425a0179843c8eaddcd03bbf675dc31e0dc6d3c8df15b5",
"version": 2,
"size": 176,
"vsize": 176,
Expand All @@ -22,12 +22,12 @@
"value": 0.18000000,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 1fc11f39be1729bf973a7ab6a615ca4729d64574 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac",
"asm": "OP_DUP OP_HASH160 15dd8f417866927d1c3ecc2b50f8bc58dd78f267 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91415dd8f417866927d1c3ecc2b50f8bc58dd78f26788ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"
"D78i9WxKZYWjM7JxDpwaBo7y7Shhovxq44"
]
}
},
Expand All @@ -41,5 +41,5 @@
}
}
],
"hex": "02000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0000000000000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000"
"hex": "02000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a91415dd8f417866927d1c3ecc2b50f8bc58dd78f26788ac0000000000000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000"
}
Loading

0 comments on commit c9a9cb2

Please sign in to comment.