aboutsummaryrefslogtreecommitdiff
path: root/src/miner.cpp
diff options
context:
space:
mode:
authorDaniel Kraft <d@domob.eu>2015-08-08 18:18:41 +0200
committerDaniel Kraft <d@domob.eu>2015-08-08 18:18:41 +0200
commit69c3bde4480ebe28095f4399a29f9fc73567a1d3 (patch)
treee2cbc7e58cde1735371ea00c28628e9e054e6ba3 /src/miner.cpp
parentc0f66ce44abdc44ddbff892720d5b85f6a95436d (diff)
downloadbitcoin-69c3bde4480ebe28095f4399a29f9fc73567a1d3.tar.xz
Add some const declarations where they are appropriate.
Declare some arguments of functions as "const" pointers where they are not meant to be modified.
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 864e4bf31f..4172266067 100644
--- a/src/miner.cpp
+++ b/src/miner.cpp
@@ -352,7 +352,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
return pblocktemplate.release();
}
-void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce)
+void IncrementExtraNonce(CBlock* pblock, const CBlockIndex* pindexPrev, unsigned int& nExtraNonce)
{
// Update nExtraNonce
static uint256 hashPrevBlock;
@@ -409,7 +409,7 @@ bool static ScanHash(const CBlockHeader *pblock, uint32_t& nNonce, uint256 *phas
}
}
-static bool ProcessBlockFound(CBlock* pblock, const CChainParams& chainparams)
+static bool ProcessBlockFound(const CBlock* pblock, const CChainParams& chainparams)
{
LogPrintf("%s\n", pblock->ToString());
LogPrintf("generated %s\n", FormatMoney(pblock->vtx[0].vout[0].nValue));