mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Merge pull request #2286 from gavinandresen/fix2285
Do not use C++11 std::vector.data()
This commit is contained in:
commit
2f0fa79db2
@ -307,7 +307,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
|
|||||||
}
|
}
|
||||||
entry.push_back(Pair("depends", deps));
|
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("fee", pblocktemplate->vTxFees[index_in_template]));
|
||||||
entry.push_back(Pair("sigops", pblocktemplate->vTxSigOps[index_in_template]));
|
entry.push_back(Pair("sigops", pblocktemplate->vTxSigOps[index_in_template]));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user