@ -549,6 +549,9 @@ private:
std : : vector < indexed_transaction_set : : const_iterator > GetSortedDepthAndScore ( ) const EXCLUSIVE_LOCKS_REQUIRED ( cs ) ;
/** track locally submitted transactions to periodically retry initial broadcast */
std : : set < uint256 > m_unbroadcast_txids GUARDED_BY ( cs ) ;
public :
indirectmap < COutPoint , const CTransaction * > mapNextTx GUARDED_BY ( cs ) ;
std : : map < uint256 , CAmount > mapDeltas ;
@ -698,6 +701,21 @@ public:
size_t DynamicMemoryUsage ( ) const ;
/** Adds a transaction to the unbroadcast set */
void AddUnbroadcastTx ( const uint256 & txid ) {
LOCK ( cs ) ;
m_unbroadcast_txids . insert ( txid ) ;
}
/** Removes a transaction from the unbroadcast set */
void RemoveUnbroadcastTx ( const uint256 & txid , const bool unchecked = false ) ;
/** Returns transactions in unbroadcast set */
const std : : set < uint256 > GetUnbroadcastTxs ( ) const {
LOCK ( cs ) ;
return m_unbroadcast_txids ;
}
private :
/** UpdateForDescendants is used by UpdateTransactionsFromBlock to update
* the descendants for a single transaction that has been added to the