aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-06-05 07:00:57 +0200
committerWladimir J. van der Laan <[email protected]>2015-06-05 07:11:44 +0200
commit3fce72eaa3ea75aa911e32c4d96313848338cede (patch)
tree8604bec497a9137315589e468ba8f79e1f7a0fd7 /src/rpcmining.cpp
parentMerge pull request #6234 (diff)
parentuse const references where appropriate (diff)
downloaddiscoin-3fce72eaa3ea75aa911e32c4d96313848338cede.tar.xz
discoin-3fce72eaa3ea75aa911e32c4d96313848338cede.zip
Merge pull request #6206
a9ac95c use const references where appropriate (Philip Kaufmann)
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r--src/rpcmining.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index 8637df660..f33281461 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -523,8 +523,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
UniValue transactions(UniValue::VARR);
map<uint256, int64_t> setTxIndex;
int i = 0;
- BOOST_FOREACH (CTransaction& tx, pblock->vtx)
- {
+ BOOST_FOREACH (const CTransaction& tx, pblock->vtx) {
uint256 txHash = tx.GetHash();
setTxIndex[txHash] = i++;