@ -11,6 +11,7 @@
class CBlock ;
class CBlock ;
struct CBlockLocator ;
struct CBlockLocator ;
class CBlockIndex ;
class CReserveScript ;
class CReserveScript ;
class CTransaction ;
class CTransaction ;
class CValidationInterface ;
class CValidationInterface ;
@ -30,7 +31,7 @@ void SyncWithWallets(const CTransaction& tx, const CBlock* pblock = NULL);
class CValidationInterface {
class CValidationInterface {
protected :
protected :
virtual void UpdatedBlockTip ( const uint256 & newHashTip ) { }
virtual void UpdatedBlockTip ( const CBlockIndex * pindex ) { }
virtual void SyncTransaction ( const CTransaction & tx , const CBlock * pblock ) { }
virtual void SyncTransaction ( const CTransaction & tx , const CBlock * pblock ) { }
virtual void SetBestChain ( const CBlockLocator & locator ) { }
virtual void SetBestChain ( const CBlockLocator & locator ) { }
virtual void UpdatedTransaction ( const uint256 & hash ) { }
virtual void UpdatedTransaction ( const uint256 & hash ) { }
@ -46,7 +47,7 @@ protected:
struct CMainSignals {
struct CMainSignals {
/** Notifies listeners of updated block chain tip */
/** 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. */
/** Notifies listeners of updated transaction data (transaction, and optionally the block it is found in. */
boost : : signals2 : : signal < void ( const CTransaction & , const CBlock * ) > SyncTransaction ;
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). */
/** Notifies listeners of an updated transaction without new data (for now: a coinbase potentially becoming visible). */