diff options
author | Daniel Kraft <d@domob.eu> | 2016-06-18 19:38:28 +0200 |
---|---|---|
committer | Daniel Kraft <d@domob.eu> | 2016-06-18 19:38:28 +0200 |
commit | 9fce0629b437441cb09c14055ee810b8ee6b7978 (patch) | |
tree | d7bfbb98986afba0d89a97d5c9824398d8a1feda /src/miner.h | |
parent | ed2cd59e258f756b2eaed7909a60956ade6ef7ee (diff) |
[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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/miner.h b/src/miner.h index a9fea85304..54c680b5ff 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 |