Changeset View
Changeset View
Standalone View
Standalone View
src/test/validation_block_tests.cpp
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | for (int i = 0; i < 10; i++) { | ||||
} | } | ||||
} | } | ||||
}); | }); | ||||
} | } | ||||
for (auto &t : threads) { | for (auto &t : threads) { | ||||
t.join(); | t.join(); | ||||
} | } | ||||
while (GetMainSignals().CallbacksPending() > 0) { | SyncWithValidationInterfaceQueue(); | ||||
UninterruptibleSleep(std::chrono::milliseconds{100}); | |||||
} | |||||
UnregisterValidationInterface(&sub); | UnregisterValidationInterface(&sub); | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
BOOST_CHECK_EQUAL(sub.m_expected_tip, | BOOST_CHECK_EQUAL(sub.m_expected_tip, | ||||
::ChainActive().Tip()->GetBlockHash()); | ::ChainActive().Tip()->GetBlockHash()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |