374 | @@ -375,6 +375,7 @@ class CTxMemPool
375 | void removeForBlock(const std::vector<CTransaction>& vtx, unsigned int nBlockHeight,
376 | std::list<CTransaction>& conflicts, bool fCurrentEstimate = true);
377 | void clear();
nit: lockAndClear/clearSync maybe?
Usually projects have some convention for this (eg _XX and XX, or XX_nolock and XX) . Where one is used internally (when lock already held) and the other externally (locks and calls inner function).
Preferable to have the names as similar as possible with just the lock/nonlock difference. lockAndClear and clearSync are too far apart to be easily recognizable as a set. So IMO the current naming is better.
:+1: just not something I'd seen before.