moved "index_in_template" to a separate variable to clarify what it is
This commit is contained in:
parent
0f927ceb5b
commit
f3d872d1ea
1 changed files with 3 additions and 2 deletions
|
@ -307,8 +307,9 @@ Value getblocktemplate(const Array& params, bool fHelp)
|
||||||
}
|
}
|
||||||
entry.push_back(Pair("depends", deps));
|
entry.push_back(Pair("depends", deps));
|
||||||
|
|
||||||
entry.push_back(Pair("fee", pblocktemplate->vTxFees[&tx - pblock->vtx.data()]));
|
int index_in_template = &tx - pblock->vtx.data();
|
||||||
entry.push_back(Pair("sigops", pblocktemplate->vTxSigOps[&tx - pblock->vtx.data()]));
|
entry.push_back(Pair("fee", pblocktemplate->vTxFees[index_in_template]));
|
||||||
|
entry.push_back(Pair("sigops", pblocktemplate->vTxSigOps[index_in_template]));
|
||||||
|
|
||||||
transactions.push_back(entry);
|
transactions.push_back(entry);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue