aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-tx.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2016-06-07 19:57:54 +0200
committerJonas Schnelli <[email protected]>2016-06-07 21:07:47 +0200
commit86efa30ae3fd36aa77b19ff0f70bb89be9ec308e (patch)
treef0096ee67e15d45b3b22b535a8b006948864c95f /src/bitcoin-tx.cpp
parentMerge #7957: [RPC][Bitcoin-TX] Add support for sequence number (diff)
downloaddiscoin-86efa30ae3fd36aa77b19ff0f70bb89be9ec308e.tar.xz
discoin-86efa30ae3fd36aa77b19ff0f70bb89be9ec308e.zip
[Bitcoin-Tx] fix missing test fixtures, fix 32bit atoi issue
Diffstat (limited to 'src/bitcoin-tx.cpp')
-rw-r--r--src/bitcoin-tx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp
index d5e2fc279..f9ea94b9f 100644
--- a/src/bitcoin-tx.cpp
+++ b/src/bitcoin-tx.cpp
@@ -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);