mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Merge pull request #4909
This commit is contained in:
commit
a0a8700bc8
@ -13,7 +13,8 @@ EXTRA_DIST += \
|
|||||||
test/data/tt-delout1-out.hex \
|
test/data/tt-delout1-out.hex \
|
||||||
test/data/tt-locktime317000-out.hex \
|
test/data/tt-locktime317000-out.hex \
|
||||||
test/data/tx394b54bb.hex \
|
test/data/tx394b54bb.hex \
|
||||||
test/data/txcreate1.hex
|
test/data/txcreate1.hex \
|
||||||
|
test/data/txcreate2.hex
|
||||||
|
|
||||||
JSON_TEST_FILES = \
|
JSON_TEST_FILES = \
|
||||||
test/data/script_valid.json \
|
test/data/script_valid.json \
|
||||||
|
@ -237,8 +237,7 @@ static void MutateTxAddOutScript(CMutableTransaction& tx, const string& strInput
|
|||||||
// separate VALUE:SCRIPT in string
|
// separate VALUE:SCRIPT in string
|
||||||
size_t pos = strInput.find(':');
|
size_t pos = strInput.find(':');
|
||||||
if ((pos == string::npos) ||
|
if ((pos == string::npos) ||
|
||||||
(pos == 0) ||
|
(pos == 0))
|
||||||
(pos == (strInput.size() - 1)))
|
|
||||||
throw runtime_error("TX output missing separator");
|
throw runtime_error("TX output missing separator");
|
||||||
|
|
||||||
// extract and validate VALUE
|
// extract and validate VALUE
|
||||||
|
@ -34,5 +34,8 @@
|
|||||||
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
||||||
"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
|
"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
|
||||||
"output_cmp": "txcreate1.hex"
|
"output_cmp": "txcreate1.hex"
|
||||||
|
},
|
||||||
|
{ "exec": ["./bitcoin-tx", "-create", "outscript=0:"],
|
||||||
|
"output_cmp": "txcreate2.hex"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
1
src/test/data/txcreate2.hex
Normal file
1
src/test/data/txcreate2.hex
Normal file
@ -0,0 +1 @@
|
|||||||
|
01000000000100000000000000000000000000
|
Loading…
Reference in New Issue
Block a user