@ -355,7 +355,6 @@ void CTxMemPool::AddTransactionsUpdated(unsigned int n)
void CTxMemPool : : addUnchecked ( const CTxMemPoolEntry & entry , setEntries & setAncestors , bool validFeeEstimate )
void CTxMemPool : : addUnchecked ( const CTxMemPoolEntry & entry , setEntries & setAncestors , bool validFeeEstimate )
{
{
NotifyEntryAdded ( entry . GetSharedTx ( ) ) ;
// Add to memory pool without checking anything.
// Add to memory pool without checking anything.
// Used by AcceptToMemoryPool(), which DOES do
// Used by AcceptToMemoryPool(), which DOES do
// all the appropriate checks.
// all the appropriate checks.
@ -406,14 +405,12 @@ void CTxMemPool::addUnchecked(const CTxMemPoolEntry &entry, setEntries &setAnces
void CTxMemPool : : removeUnchecked ( txiter it , MemPoolRemovalReason reason )
void CTxMemPool : : removeUnchecked ( txiter it , MemPoolRemovalReason reason )
{
{
CTransactionRef ptx = it - > GetSharedTx ( ) ;
NotifyEntryRemoved ( ptx , reason ) ;
if ( reason ! = MemPoolRemovalReason : : BLOCK ) {
if ( reason ! = MemPoolRemovalReason : : BLOCK ) {
// Notify clients that a transaction has been removed from the mempool
// Notify clients that a transaction has been removed from the mempool
// for any reason except being included in a block. Clients interested
// for any reason except being included in a block. Clients interested
// in transactions included in blocks can subscribe to the BlockConnected
// in transactions included in blocks can subscribe to the BlockConnected
// notification.
// notification.
GetMainSignals ( ) . TransactionRemovedFromMempool ( ptx ) ;
GetMainSignals ( ) . TransactionRemovedFromMempool ( it- > GetSharedTx ( ) ) ;
}
}
const uint256 hash = it - > GetTx ( ) . GetHash ( ) ;
const uint256 hash = it - > GetTx ( ) . GetHash ( ) ;