aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2015-05-31 15:36:44 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2015-06-04 19:34:18 +0200
commita9ac95c1bc67726a7d6eecb35d7650eed6c89361 (patch)
treeba9b43d9b01e925d2050d7084a11aec927a2d564 /src/rpcmining.cpp
parent466f0ea0e66b88285c7797ab36ba777725324e83 (diff)
downloadbitcoin-a9ac95c1bc67726a7d6eecb35d7650eed6c89361.tar.xz
use const references where appropriate
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 76d90a3f7e..51a8bbb9c4 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++;