Skip to content

Commit 2f0fa79

Browse files
committed
Merge pull request #2286 from gavinandresen/fix2285
Do not use C++11 std::vector.data()
2 parents e48aa60 + ba1d080 commit 2f0fa79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpcmining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
307307
}
308308
entry.push_back(Pair("depends", deps));
309309

310-
int index_in_template = &tx - pblock->vtx.data();
310+
int index_in_template = i - 1;
311311
entry.push_back(Pair("fee", pblocktemplate->vTxFees[index_in_template]));
312312
entry.push_back(Pair("sigops", pblocktemplate->vTxSigOps[index_in_template]));
313313

0 commit comments

Comments
 (0)