From fbf54fb6da4e3ec2708b29d94768d091c97db304 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sun, 25 Aug 2013 20:16:23 -0400 Subject: [PATCH] miner: constify CreateNewBlock() arg scriptPubKeyIn Conflicts: src/miner.cpp src/miner.h Rebased-from: ad7d7cde5d30bcbfa7803c90daac7297b8a55e42 --- src/main.cpp | 2 +- src/main.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index a6fd6368b..80f13cb5d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4186,7 +4186,7 @@ public: } }; -CBlockTemplate* CreateNewBlock(CScript& scriptPubKeyIn) +CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) { // Create new block auto_ptr pblocktemplate(new CBlockTemplate()); diff --git a/src/main.h b/src/main.h index 35c38a055..015cf263f 100644 --- a/src/main.h +++ b/src/main.h @@ -157,7 +157,7 @@ void ThreadScriptCheck(); /** 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);