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

Method ChainStateFlushed

src/validationinterface.cpp:255–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void ValidationSignals::ChainStateFlushed(const ChainstateRole& role, const CBlockLocator& locator)
256{
257 auto log_msg = LOG_MSG("%s: block hash=%s", __func__,
258 locator.IsNull() ? "null" : locator.vHave.front().ToString());
259 auto event = [role, locator, this] {
260 m_internals->Iterate([&](CValidationInterface& callbacks) { callbacks.ChainStateFlushed(role, locator); });
261 };
262 ENQUEUE_AND_LOG_EVENT(std::move(event), std::move(log_msg));
263}
264
265void ValidationSignals::BlockChecked(const std::shared_ptr<const CBlock>& block, const BlockValidationState& state)
266{

Callers

nothing calls this directly

Calls 4

IterateMethod · 0.80
IsNullMethod · 0.45
ToStringMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected