Skip to content

Commit

Permalink
[Bitcoin-Tx] fix missing test fixtures, fix 32bit atoi issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasschnelli committed Jun 7, 2016
1 parent 79004d4 commit 86efa30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Makefile.test.include
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion src/bitcoin-tx.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 86efa30

Please sign in to comment.