[Bitcoin-Tx] fix missing test fixtures, fix 32bit atoi issue

This commit is contained in:
Jonas Schnelli 2016-06-07 19:57:54 +02:00
parent 79004d4ae6
commit 86efa30ae3
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
2 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,9 @@ EXTRA_DIST += \
test/data/txcreate2.hex \
test/data/txcreatedata1.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 = \
test/data/script_tests.json \

View File

@ -206,7 +206,7 @@ static void MutateTxAddInput(CMutableTransaction& tx, const string& strInput)
// extract the optional sequence number
uint32_t nSequenceIn=std::numeric_limits<unsigned int>::max();
if (vStrInputParts.size() > 2)
nSequenceIn = atoi(vStrInputParts[2]);
nSequenceIn = std::stoul(vStrInputParts[2]);
// append to transaction input list
CTxIn txin(txid, vout, CScript(), nSequenceIn);