@@ -50,9 +50,16 @@ class CValidationInterface {
5050struct CMainSignals {
5151 /* * Notifies listeners of updated block chain tip */
5252 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.*/
5456 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.*/
5663 boost::signals2::signal<void (const CTransaction &, const CBlockIndex *pindex, int posInBlock)> SyncTransaction;
5764 /* * Notifies listeners of an updated transaction without new data (for now: a coinbase potentially becoming visible). */
5865 boost::signals2::signal<void (const uint256 &)> UpdatedTransaction;
0 commit comments