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

Method NotifyBlockConnect

src/zmq/zmqpublishnotifier.cpp:273–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273bool CZMQPublishSequenceNotifier::NotifyBlockConnect(const CBlockIndex *pindex)
274{
275 uint256 hash = pindex->GetBlockHash();
276 LogPrint(BCLog::ZMQ, "zmq: Publish sequence block connect %s to %s\n", hash.GetHex(), this->address);
277 return SendSequenceMsg(*this, hash, /* Block (C)onnect */ 'C');
278}
279
280bool CZMQPublishSequenceNotifier::NotifyBlockDisconnect(const CBlockIndex *pindex)
281{

Callers 1

BlockConnectedMethod · 0.45

Calls 3

SendSequenceMsgFunction · 0.85
GetBlockHashMethod · 0.45
GetHexMethod · 0.45

Tested by

no test coverage detected