diff options
author | Matt Corallo <git@bluematt.me> | 2017-01-19 16:15:41 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-04-07 11:53:43 +0200 |
commit | 1c95e2f9c94f172ddddedeb1358953992f39f8bd (patch) | |
tree | 8c88da5d96bbd4fb70b212f323707e39896d37b6 /src/validationinterface.h | |
parent | 91f1e6ce5e7854435196464aace0dcf7ce21dd5a (diff) |
Use std::shared_ptr instead of boost::shared_ptr in ScriptForMining
Diffstat (limited to 'src/validationinterface.h')
-rw-r--r-- | src/validationinterface.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h index baa04fe312..083c136f2c 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -7,7 +7,6 @@ #define BITCOIN_VALIDATIONINTERFACE_H #include <boost/signals2/signal.hpp> -#include <boost/shared_ptr.hpp> #include <memory> #include "primitives/transaction.h" // CTransaction(Ref) @@ -42,7 +41,7 @@ protected: virtual void Inventory(const uint256 &hash) {} virtual void ResendWalletTransactions(int64_t nBestBlockTime, CConnman* connman) {} virtual void BlockChecked(const CBlock&, const CValidationState&) {} - virtual void GetScriptForMining(boost::shared_ptr<CReserveScript>&) {}; + virtual void GetScriptForMining(std::shared_ptr<CReserveScript>&) {}; virtual void NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr<const CBlock>& block) {}; friend void ::RegisterValidationInterface(CValidationInterface*); friend void ::UnregisterValidationInterface(CValidationInterface*); @@ -77,7 +76,7 @@ struct CMainSignals { */ boost::signals2::signal<void (const CBlock&, const CValidationState&)> BlockChecked; /** Notifies listeners that a key for mining is required (coinbase) */ - boost::signals2::signal<void (boost::shared_ptr<CReserveScript>&)> ScriptForMining; + boost::signals2::signal<void (std::shared_ptr<CReserveScript>&)> ScriptForMining; /** * Notifies listeners that a block which builds directly on our current tip * has been received and connected to the headers tree, though not validated yet */ |