diff options
author | João Barbosa <joao@bitreserve.org> | 2015-05-07 15:49:00 +0100 |
---|---|---|
committer | João Barbosa <joao@bitreserve.org> | 2015-09-16 10:59:32 +0100 |
commit | 5624e055b310284e8dfd68833eea7f7246316354 (patch) | |
tree | 9cae42ce1aaac7a71583db94134db33f80906d66 /src/validationinterface.h | |
parent | 9733bc99a0b967522ff47e00f4d8e408e6ee5c4f (diff) |
Add UpdatedBlockTip signal to CMainSignals and CValidationInterface
Diffstat (limited to 'src/validationinterface.h')
-rw-r--r-- | src/validationinterface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h index fb0ce0bdaa..6f95ad74eb 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -30,6 +30,7 @@ void SyncWithWallets(const CTransaction& tx, const CBlock* pblock = NULL); class CValidationInterface { protected: + virtual void UpdatedBlockTip(const uint256 &newHashTip) {} virtual void SyncTransaction(const CTransaction &tx, const CBlock *pblock) {} virtual void SetBestChain(const CBlockLocator &locator) {} virtual void UpdatedTransaction(const uint256 &hash) {} @@ -44,6 +45,8 @@ protected: }; struct CMainSignals { + /** Notifies listeners of updated block chain tip */ + boost::signals2::signal<void (const uint256 &)> UpdatedBlockTip; /** Notifies listeners of updated transaction data (transaction, and optionally the block it is found in. */ boost::signals2::signal<void (const CTransaction &, const CBlock *)> SyncTransaction; /** Notifies listeners of an updated transaction without new data (for now: a coinbase potentially becoming visible). */ |