| 253 | } |
| 254 | |
| 255 | void 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 | |
| 265 | void ValidationSignals::BlockChecked(const std::shared_ptr<const CBlock>& block, const BlockValidationState& state) |
| 266 | { |