| 218 | } |
| 219 | |
| 220 | void CMainSignals::BlockConnected(const std::shared_ptr<const CBlock> &pblock, const CBlockIndex *pindex) { |
| 221 | auto event = [pblock, pindex, this] { |
| 222 | m_internals->Iterate([&](CValidationInterface& callbacks) { callbacks.BlockConnected(pblock, pindex); }); |
| 223 | }; |
| 224 | ENQUEUE_AND_LOG_EVENT(event, "%s: block hash=%s block height=%d", __func__, |
| 225 | pblock->GetHash().ToString(), |
| 226 | pindex->nHeight); |
| 227 | } |
| 228 | |
| 229 | void CMainSignals::BlockDisconnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindex) |
| 230 | { |