MCPcopy Create free account
hub / github.com/ElementsProject/elements / SyncWithValidationInterfaceQueue

Function SyncWithValidationInterfaceQueue

src/validationinterface.cpp:160–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void SyncWithValidationInterfaceQueue()
161{
162 AssertLockNotHeld(cs_main);
163 // Block until the validation queue drains
164 std::promise<void> promise;
165 CallFunctionInValidationInterfaceQueue([&promise] {
166 promise.set_value();
167 });
168 promise.get_future().wait();
169}
170
171// Use a macro instead of a function for conditional logging to prevent
172// evaluating arguments when logging is not enabled.

Callers 15

LOCKS_EXCLUDEDFunction · 0.85
TestUnloadWalletFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
fuzz_targetFunction · 0.85
initialize_tx_poolFunction · 0.85
FinishFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85

Calls 2

waitMethod · 0.80

Tested by 12

TestUnloadWalletFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
fuzz_targetFunction · 0.68
initialize_tx_poolFunction · 0.68
FinishFunction · 0.68
FUZZ_TARGET_INITFunction · 0.68
FUZZ_TARGET_INITFunction · 0.68