MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DisableNextWrite

Method DisableNextWrite

src/test/util/validation.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void TestChainstateManager::DisableNextWrite()
23{
24 struct TestChainstate : public Chainstate {
25 void ResetNextWrite() { m_next_write = NodeClock::time_point::max() - 1s; }
26 };
27 LOCK(::cs_main);
28 for (const auto& cs : m_chainstates) {
29 static_cast<TestChainstate&>(*cs).ResetNextWrite();
30 }
31}
32
33void TestChainstateManager::ResetIbd()
34{

Callers 3

cmpctblock.cppFile · 0.80

Calls 1

ResetNextWriteMethod · 0.80

Tested by

no test coverage detected