MCPcopy Create free account
hub / github.com/ElementsProject/elements / BlockConnected

Method BlockConnected

src/validationinterface.cpp:220–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void 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
229void CMainSignals::BlockDisconnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindex)
230{

Callers

nothing calls this directly

Calls 3

IterateMethod · 0.45
ToStringMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected