aboutsummaryrefslogtreecommitdiff
path: root/src/miner.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2014-06-09 10:02:00 +0200
committerPieter Wuille <[email protected]>2014-06-22 00:06:17 +0200
commitd38da59bf68fbb37535e2579bfb7355a16baed0e (patch)
treefb9821f60f32fa8ea0564d1149fa37ab396ead97 /src/miner.cpp
parentAdd CMutableTransaction and make CTransaction immutable. (diff)
downloaddiscoin-d38da59bf68fbb37535e2579bfb7355a16baed0e.tar.xz
discoin-d38da59bf68fbb37535e2579bfb7355a16baed0e.zip
Code simplifications after CTransaction::GetHash() caching
Diffstat (limited to 'src/miner.cpp')
-rw-r--r--src/miner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/miner.cpp b/src/miner.cpp
index 37cdc7d84..63ce12506 100644
--- a/src/miner.cpp
+++ b/src/miner.cpp
@@ -254,8 +254,8 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
continue;
CTxUndo txundo;
- uint256 hash = tx.GetHash();
- UpdateCoins(tx, state, view, txundo, pindexPrev->nHeight+1, hash);
+ const uint256& hash = tx.GetHash();
+ UpdateCoins(tx, state, view, txundo, pindexPrev->nHeight+1);
// Added
pblock->vtx.push_back(tx);