@@ -50,9 +50,16 @@ class CValidationInterface {
50
50
struct CMainSignals {
51
51
/* * Notifies listeners of updated block chain tip */
52
52
boost::signals2::signal<void (const CBlockIndex *, const CBlockIndex *, bool fInitialDownload )> UpdatedBlockTip;
53
- /* * A posInBlock value for SyncTransaction which indicates the transaction was conflicted, disconnected, or not in a block */
53
+ /* * A posInBlock value for SyncTransaction calls for tranactions not
54
+ * included in connected blocks such as transactions removed from mempool,
55
+ * accepted to mempool or appearing in disconnected blocks.*/
54
56
static const int SYNC_TRANSACTION_NOT_IN_BLOCK = -1 ;
55
- /* * Notifies listeners of updated transaction data (transaction, and optionally the block it is found in. */
57
+ /* * Notifies listeners of updated transaction data (transaction, and
58
+ * optionally the block it is found in). Called with block data when
59
+ * transaction is included in a connected block, and without block data when
60
+ * transaction was accepted to mempool, removed from mempool (only when
61
+ * removal was due to conflict from connected block), or appeared in a
62
+ * disconnected block.*/
56
63
boost::signals2::signal<void (const CTransaction &, const CBlockIndex *pindex, int posInBlock)> SyncTransaction;
57
64
/* * Notifies listeners of an updated transaction without new data (for now: a coinbase potentially becoming visible). */
58
65
boost::signals2::signal<void (const uint256 &)> UpdatedTransaction;
0 commit comments