diff options
| author | Daniel Kraft <[email protected]> | 2016-06-18 19:38:28 +0200 |
|---|---|---|
| committer | Daniel Kraft <[email protected]> | 2016-06-18 19:38:28 +0200 |
| commit | 9fce0629b437441cb09c14055ee810b8ee6b7978 (patch) | |
| tree | d7bfbb98986afba0d89a97d5c9824398d8a1feda /src/miner.h | |
| parent | Merge #8214: [qa] mininode: fail on send_message instead of silent return (diff) | |
| download | discoin-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.h | 2 |
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 |