diff options
| author | Jeff Garzik <[email protected]> | 2013-08-25 20:16:23 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2013-08-25 20:16:23 -0400 |
| commit | f1dbed9233fb138026c646db0ac34e83ae2114f1 (patch) | |
| tree | 68ab1a6332c0f59fc03541a8a1e1a4cad68d18e2 /src | |
| parent | RPC: getblocktemplate does not require a key, to create a block template (diff) | |
| download | discoin-f1dbed9233fb138026c646db0ac34e83ae2114f1.tar.xz discoin-f1dbed9233fb138026c646db0ac34e83ae2114f1.zip | |
miner: constify CreateNewBlock() arg scriptPubKeyIn
Diffstat (limited to 'src')
| -rw-r--r-- | src/miner.cpp | 2 | ||||
| -rw-r--r-- | src/miner.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index bea69ad1b..3ecf1609e 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -141,7 +141,7 @@ public: } }; -CBlockTemplate* CreateNewBlock(CScript& scriptPubKeyIn) +CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) { // Create new block auto_ptr<CBlockTemplate> pblocktemplate(new CBlockTemplate()); diff --git a/src/miner.h b/src/miner.h index 0bc76be10..36d58be00 100644 --- a/src/miner.h +++ b/src/miner.h @@ -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); |