mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
Call TransactionRemovedFromMempool in the CScheduler thread
This is both good practice (we want to move all such callbacks into a background thread eventually) and prevents a lock inversion when we go to use this in wallet (mempool.cs->cs_wallet and cs_wallet->mempool.cs would otherwise both be used).
This commit is contained in:
@@ -45,6 +45,8 @@ protected:
|
||||
* size limiting, reorg (changes in lock times/coinbase maturity), or
|
||||
* replacement. This does not include any transactions which are included
|
||||
* in BlockConnectedDisconnected either in block->vtx or in txnConflicted.
|
||||
*
|
||||
* Called on a background thread.
|
||||
*/
|
||||
virtual void TransactionRemovedFromMempool(const CTransactionRef &ptx) {}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user