| 116 | } |
| 117 | |
| 118 | void SyncWithValidationInterfaceQueue() { |
| 119 | AssertLockNotHeld(cs_main); |
| 120 | // Block until the validation queue drains |
| 121 | std::promise<void> promise; |
| 122 | CallFunctionInValidationInterfaceQueue([&promise] { |
| 123 | promise.set_value(); |
| 124 | }); |
| 125 | promise.get_future().wait(); |
| 126 | } |
| 127 | |
| 128 | void CMainSignals::MempoolEntryRemoved(CTransactionRef ptx, MemPoolRemovalReason reason) { |
| 129 | if (reason != MemPoolRemovalReason::BLOCK && reason != MemPoolRemovalReason::CONFLICT) { |