diff options
| author | Gavin Andresen <[email protected]> | 2013-02-07 18:54:22 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-02-07 18:54:22 -0500 |
| commit | ba1d08008e6a8335eb0fca3c7d6c1ff4701b9bad (patch) | |
| tree | 0ae0a7e92183d96453aabfd45cb103baf8b7bcf2 /src/rpcmining.cpp | |
| parent | Merge commit 'd38c6488d067c2e88726e2ca99bc76fd67dab49b' (diff) | |
| download | discoin-ba1d08008e6a8335eb0fca3c7d6c1ff4701b9bad.tar.xz discoin-ba1d08008e6a8335eb0fca3c7d6c1ff4701b9bad.zip | |
Do not use C++11 std::vector.data()
std::vector.data() is a C++11 feature that makes my OSX build machine unhappy.
Diffstat (limited to 'src/rpcmining.cpp')
| -rw-r--r-- | src/rpcmining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index b9ebcb400..fddda8b5f 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])); |