9#include <boost/test/unit_test.hpp>
11BOOST_AUTO_TEST_SUITE(chainstate_write_tests)
16 bool m_did_flush{
false};
23 const auto sub{std::make_shared<TestSubscriber>()};
34 SetMockTime(GetTime<std::chrono::minutes>() + 49min);
39 SetMockTime(GetTime<std::chrono::minutes>() + 70min);
BOOST_FIXTURE_TEST_CASE(chainstate_write_interval, TestingSetup)
#define Assert(val)
Identity function.
Implement this to subscribe to events generated in validation and mempool.
virtual void ChainStateFlushed(ChainstateRole role, const CBlockLocator &locator)
Notifies listeners of the new active block chain on-disk.
BOOST_AUTO_TEST_SUITE_END()
ChainstateRole
This enum describes the various roles a specific Chainstate instance can take.
#define BOOST_CHECK(expr)
Describes a place in the block chain to another node such that if the other node doesn't have the sam...
Testing setup that configures a complete environment.
std::unique_ptr< ValidationSignals > validation_signals
Issues calls about blocks and transactions.
std::unique_ptr< ChainstateManager > chainman
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.