diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-05 07:00:57 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-05 07:11:44 +0200 |
commit | 3fce72eaa3ea75aa911e32c4d96313848338cede (patch) | |
tree | 8604bec497a9137315589e468ba8f79e1f7a0fd7 /src/rpcmining.cpp | |
parent | d38cd47fe3d65d3d6d867d6fb61a4ce24f0747b3 (diff) | |
parent | a9ac95c1bc67726a7d6eecb35d7650eed6c89361 (diff) |
Merge pull request #6206
a9ac95c use const references where appropriate (Philip Kaufmann)
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r-- | src/rpcmining.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 8637df660f..f332814611 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++; |