aboutsummaryrefslogtreecommitdiff
path: root/src/miner.h
diff options
context:
space:
mode:
authorDaniel Kraft <[email protected]>2016-06-18 19:38:28 +0200
committerDaniel Kraft <[email protected]>2016-06-18 19:38:28 +0200
commit9fce0629b437441cb09c14055ee810b8ee6b7978 (patch)
treed7bfbb98986afba0d89a97d5c9824398d8a1feda /src/miner.h
parentMerge #8214: [qa] mininode: fail on send_message instead of silent return (diff)
downloaddiscoin-9fce0629b437441cb09c14055ee810b8ee6b7978.tar.xz
discoin-9fce0629b437441cb09c14055ee810b8ee6b7978.zip
[c++11] Use std::unique_ptr for block creation.
CreateNewBlock returns a pointer for which the caller takes ownership. Use std::unique_ptr to make this explicit and simplify handling of these objects in getblocktemplate.
Diffstat (limited to 'src/miner.h')
-rw-r--r--src/miner.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/miner.h b/src/miner.h
index a9fea8530..54c680b5f 100644
--- a/src/miner.h
+++ b/src/miner.h
@@ -160,7 +160,7 @@ private:
public:
BlockAssembler(const CChainParams& chainparams);
/** Construct a new block template with coinbase to scriptPubKeyIn */
- CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn);
+ std::unique_ptr<CBlockTemplate> CreateNewBlock(const CScript& scriptPubKeyIn);
private:
// utility functions