|
|
@ -50,9 +50,16 @@ protected: |
|
|
|
struct CMainSignals { |
|
|
|
struct CMainSignals { |
|
|
|
/** Notifies listeners of updated block chain tip */ |
|
|
|
/** Notifies listeners of updated block chain tip */ |
|
|
|
boost::signals2::signal<void (const CBlockIndex *, const CBlockIndex *, bool fInitialDownload)> UpdatedBlockTip; |
|
|
|
boost::signals2::signal<void (const CBlockIndex *, const CBlockIndex *, bool fInitialDownload)> UpdatedBlockTip; |
|
|
|
/** A posInBlock value for SyncTransaction which indicates the transaction was conflicted, disconnected, or not in a block */ |
|
|
|
/** A posInBlock value for SyncTransaction calls for tranactions not
|
|
|
|
|
|
|
|
* included in connected blocks such as transactions removed from mempool, |
|
|
|
|
|
|
|
* accepted to mempool or appearing in disconnected blocks.*/ |
|
|
|
static const int SYNC_TRANSACTION_NOT_IN_BLOCK = -1; |
|
|
|
static const int SYNC_TRANSACTION_NOT_IN_BLOCK = -1; |
|
|
|
/** 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). Called with block data when |
|
|
|
|
|
|
|
* transaction is included in a connected block, and without block data when |
|
|
|
|
|
|
|
* transaction was accepted to mempool, removed from mempool (only when |
|
|
|
|
|
|
|
* removal was due to conflict from connected block), or appeared in a |
|
|
|
|
|
|
|
* disconnected block.*/ |
|
|
|
boost::signals2::signal<void (const CTransaction &, const CBlockIndex *pindex, int posInBlock)> SyncTransaction; |
|
|
|
boost::signals2::signal<void (const CTransaction &, const CBlockIndex *pindex, int posInBlock)> 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). */ |
|
|
|
boost::signals2::signal<void (const uint256 &)> UpdatedTransaction; |
|
|
|
boost::signals2::signal<void (const uint256 &)> UpdatedTransaction; |
|
|
|