diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-04-10 12:49:01 +0200 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-30 21:45:46 +0200 |
commit | d0fc10a8444484fabc3702e081ec77473c6c41d2 (patch) | |
tree | 0ffc49fc02777804ac6b48480a3fe88b39d81586 /src/validationinterface.h | |
parent | da77a6f7611f71443914e1c71df1e52468cf507d (diff) |
detach wallet from miner
Diffstat (limited to 'src/validationinterface.h')
-rw-r--r-- | src/validationinterface.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h index a911d1efeb..2d2427a194 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -10,6 +10,7 @@ class CBlock; struct CBlockLocator; +class CScript; class CTransaction; class CValidationInterface; class CValidationState; @@ -34,6 +35,8 @@ protected: virtual void Inventory(const uint256 &hash) {} virtual void ResendWalletTransactions(int64_t nBestBlockTime) {} virtual void BlockChecked(const CBlock&, const CValidationState&) {} + virtual void GetScriptForMining(CScript &script) {}; + virtual void UpdateRequestCount(const CBlock&) {}; friend void ::RegisterValidationInterface(CValidationInterface*); friend void ::UnregisterValidationInterface(CValidationInterface*); friend void ::UnregisterAllValidationInterfaces(); @@ -52,6 +55,10 @@ struct CMainSignals { boost::signals2::signal<void (int64_t nBestBlockTime)> Broadcast; /** Notifies listeners of a block validation result */ boost::signals2::signal<void (const CBlock&, const CValidationState&)> BlockChecked; + /** Notifies listeners that a key for mining is required (coinbase) */ + boost::signals2::signal<void (CScript &script)> ScriptForMining; + /** Notifies listeners that a block has been successfully mined */ + boost::signals2::signal<void (const CBlock&)> BlockFound; }; CMainSignals& GetMainSignals(); |