5 #include <boost/test/unit_test.hpp> 38 for (
int i = 0; i < 250000; i++) {
39 auto sub = std::make_shared<TestSubscriberNoop>();
83 bool destroyed =
false;
84 auto shared{std::make_shared<TestInterface>(
94 [&] { destroyed =
true; })};
Testing setup that performs all steps up until right before ChainstateManager gets initialized...
std::function< void()> m_on_destroy
TestInterface(ValidationSignals &signals, std::function< void()> on_call=nullptr, std::function< void()> on_destroy=nullptr)
BOOST_AUTO_TEST_CASE(unregister_validation_interface_race)
std::unique_ptr< ValidationSignals > validation_signals
Issues calls about blocks and transactions.
Implement this to subscribe to events generated in validation and mempool.
BOOST_AUTO_TEST_SUITE_END()
void BlockChecked(const CBlock &block, const BlockValidationState &state) override
Notifies listeners of a block validation result.
void BlockChecked(const CBlock &, const BlockValidationState &) override
Notifies listeners of a block validation result.
std::function< void()> m_on_call
static RPCHelpMan generate()
ValidationSignals & m_signals
void BlockChecked(const CBlock &, const BlockValidationState &)
#define BOOST_CHECK(expr)