| 227 | } |
| 228 | |
| 229 | void CMainSignals::BlockDisconnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindex) |
| 230 | { |
| 231 | auto event = [pblock, pindex, this] { |
| 232 | m_internals->Iterate([&](CValidationInterface& callbacks) { callbacks.BlockDisconnected(pblock, pindex); }); |
| 233 | }; |
| 234 | ENQUEUE_AND_LOG_EVENT(event, "%s: block hash=%s block height=%d", __func__, |
| 235 | pblock->GetHash().ToString(), |
| 236 | pindex->nHeight); |
| 237 | } |
| 238 | |
| 239 | void CMainSignals::ChainStateFlushed(const CBlockLocator &locator) { |
| 240 | auto event = [locator, this] { |