Skip to content

Commit 86efa30

Browse files
committed
[Bitcoin-Tx] fix missing test fixtures, fix 32bit atoi issue
1 parent 79004d4 commit 86efa30

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Makefile.test.include

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ EXTRA_DIST += \
1717
test/data/txcreate2.hex \
1818
test/data/txcreatedata1.hex \
1919
test/data/txcreatedata2.hex \
20-
test/data/txcreatesign.hex
20+
test/data/txcreatesign.hex \
21+
test/data/txcreatedata_seq0.hex \
22+
test/data/txcreatedata_seq1.hex
2123

2224
JSON_TEST_FILES = \
2325
test/data/script_tests.json \

src/bitcoin-tx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static void MutateTxAddInput(CMutableTransaction& tx, const string& strInput)
206206
// extract the optional sequence number
207207
uint32_t nSequenceIn=std::numeric_limits<unsigned int>::max();
208208
if (vStrInputParts.size() > 2)
209-
nSequenceIn = atoi(vStrInputParts[2]);
209+
nSequenceIn = std::stoul(vStrInputParts[2]);
210210

211211
// append to transaction input list
212212
CTxIn txin(txid, vout, CScript(), nSequenceIn);

0 commit comments

Comments
 (0)