mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge #8164: [Bitcoin-Tx] fix missing test fixtures, fix 32bit atoi issue
86efa30
[Bitcoin-Tx] fix missing test fixtures, fix 32bit atoi issue (Jonas Schnelli)
This commit is contained in:
parent
9af87c8269
commit
0b8169d498
@ -17,7 +17,9 @@ EXTRA_DIST += \
|
|||||||
test/data/txcreate2.hex \
|
test/data/txcreate2.hex \
|
||||||
test/data/txcreatedata1.hex \
|
test/data/txcreatedata1.hex \
|
||||||
test/data/txcreatedata2.hex \
|
test/data/txcreatedata2.hex \
|
||||||
test/data/txcreatesign.hex
|
test/data/txcreatesign.hex \
|
||||||
|
test/data/txcreatedata_seq0.hex \
|
||||||
|
test/data/txcreatedata_seq1.hex
|
||||||
|
|
||||||
JSON_TEST_FILES = \
|
JSON_TEST_FILES = \
|
||||||
test/data/script_tests.json \
|
test/data/script_tests.json \
|
||||||
|
@ -215,7 +215,7 @@ static void MutateTxAddInput(CMutableTransaction& tx, const string& strInput)
|
|||||||
// extract the optional sequence number
|
// extract the optional sequence number
|
||||||
uint32_t nSequenceIn=std::numeric_limits<unsigned int>::max();
|
uint32_t nSequenceIn=std::numeric_limits<unsigned int>::max();
|
||||||
if (vStrInputParts.size() > 2)
|
if (vStrInputParts.size() > 2)
|
||||||
nSequenceIn = atoi(vStrInputParts[2]);
|
nSequenceIn = std::stoul(vStrInputParts[2]);
|
||||||
|
|
||||||
// append to transaction input list
|
// append to transaction input list
|
||||||
CTxIn txin(txid, vout, CScript(), nSequenceIn);
|
CTxIn txin(txid, vout, CScript(), nSequenceIn);
|
||||||
|
Loading…
Reference in New Issue
Block a user