miner: constify CreateNewBlock() arg scriptPubKeyIn
This commit is contained in:
parent
7bb0f6c5e8
commit
f1dbed9233
2 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
CBlockTemplate* CreateNewBlock(CScript& scriptPubKeyIn)
|
||||
CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
||||
{
|
||||
// Create new block
|
||||
auto_ptr<CBlockTemplate> pblocktemplate(new CBlockTemplate());
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
/** Run the miner threads */
|
||||
void GenerateBitcoins(bool fGenerate, CWallet* pwallet);
|
||||
/** Generate a new block, without valid proof-of-work */
|
||||
CBlockTemplate* CreateNewBlock(CScript& scriptPubKeyIn);
|
||||
CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn);
|
||||
CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey);
|
||||
/** Modify the extranonce in a block */
|
||||
void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
|
||||
|
|
Loading…
Reference in a new issue