Browse Source

miner: constify CreateNewBlock() arg scriptPubKeyIn

0.10
Jeff Garzik 11 years ago
parent
commit
f1dbed9233
  1. 2
      src/miner.cpp
  2. 2
      src/miner.h

2
src/miner.cpp

@ -141,7 +141,7 @@ public: @@ -141,7 +141,7 @@ public:
}
};
CBlockTemplate* CreateNewBlock(CScript& scriptPubKeyIn)
CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
{
// Create new block
auto_ptr<CBlockTemplate> pblocktemplate(new CBlockTemplate());

2
src/miner.h

@ -11,7 +11,7 @@ @@ -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…
Cancel
Save