aboutsummaryrefslogtreecommitdiff
path: root/src/validationinterface.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-06-08 11:05:18 -0400
committerMatt Corallo <git@bluematt.me>2017-10-13 19:29:54 -0400
commit0343676ce32ef69b25bada101223b92f92da158a (patch)
tree6ce316c85afe8884c123c1226d0b4a2f8b89df32 /src/validationinterface.h
parenta7d3936de8418522dbb161bfef31c234fc6c2503 (diff)
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).
Diffstat (limited to 'src/validationinterface.h')
-rw-r--r--src/validationinterface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h
index 915c17695e..9b5784ccc3 100644
--- a/src/validationinterface.h
+++ b/src/validationinterface.h
@@ -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) {}
/**