diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-09-30 11:07:54 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-09-30 11:08:30 +0200 |
| commit | 4f44530bc38fb8367c2b9bde21492b545e7f7f26 (patch) | |
| tree | 53145a92262745270cfda20578a317e24a749973 /src/validationinterface.h | |
| parent | Merge pull request #6740 (diff) | |
| parent | use CBlockIndex* insted of uint256 for UpdatedBlockTip signal (diff) | |
| download | discoin-4f44530bc38fb8367c2b9bde21492b545e7f7f26.tar.xz discoin-4f44530bc38fb8367c2b9bde21492b545e7f7f26.zip | |
Merge pull request #6680
d76a8ac use CBlockIndex* insted of uint256 for UpdatedBlockTip signal (Jonas Schnelli)
Diffstat (limited to 'src/validationinterface.h')
| -rw-r--r-- | src/validationinterface.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h index 6f95ad74e..ffb56d266 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -11,6 +11,7 @@ class CBlock; struct CBlockLocator; +class CBlockIndex; class CReserveScript; class CTransaction; class CValidationInterface; @@ -30,7 +31,7 @@ void SyncWithWallets(const CTransaction& tx, const CBlock* pblock = NULL); class CValidationInterface { protected: - virtual void UpdatedBlockTip(const uint256 &newHashTip) {} + virtual void UpdatedBlockTip(const CBlockIndex *pindex) {} virtual void SyncTransaction(const CTransaction &tx, const CBlock *pblock) {} virtual void SetBestChain(const CBlockLocator &locator) {} virtual void UpdatedTransaction(const uint256 &hash) {} @@ -46,7 +47,7 @@ protected: struct CMainSignals { /** Notifies listeners of updated block chain tip */ - boost::signals2::signal<void (const uint256 &)> UpdatedBlockTip; + boost::signals2::signal<void (const CBlockIndex *)> 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). */ |