MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / SyncWithValidationInterfaceQueue

Function SyncWithValidationInterfaceQueue

src/validationinterface.cpp:118–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void 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
128void CMainSignals::MempoolEntryRemoved(CTransactionRef ptx, MemPoolRemovalReason reason) {
129 if (reason != MemPoolRemovalReason::BLOCK && reason != MemPoolRemovalReason::CONFLICT) {

Calls 2

waitMethod · 0.80

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68