aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-02-11 16:01:24 -0800
committerGavin Andresen <gavinandresen@gmail.com>2013-02-11 16:01:24 -0800
commit2f0fa79db290d5139c27409055b2035099afa6fd (patch)
treea6bec2eac3e867bd44c698bca1e3c3d61ee945ff /src
parente48aa6076ae6d8d5ff254649216190f8e3ae95b0 (diff)
parentba1d08008e6a8335eb0fca3c7d6c1ff4701b9bad (diff)
Merge pull request #2286 from gavinandresen/fix2285
Do not use C++11 std::vector.data()
Diffstat (limited to 'src')
-rw-r--r--src/rpcmining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index b9ebcb4001..fddda8b5f4 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -307,7 +307,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
}
entry.push_back(Pair("depends", deps));
- int index_in_template = &tx - pblock->vtx.data();
+ int index_in_template = i - 1;
entry.push_back(Pair("fee", pblocktemplate->vTxFees[index_in_template]));
entry.push_back(Pair("sigops", pblocktemplate->vTxSigOps[index_in_template]));