CZMQPublishRawBlockNotifier::CZMQPublishRawBlockNotifier

Construct the notifier with a callback that reads a block's raw bytes.

Synopsis

Declared in <zmq/zmqpublishnotifier.h>

CZMQPublishRawBlockNotifier(std::function<bool(std::vector<std::byte>&, CBlockIndex const&)> get_block_by_index);

Parameters

NameDescription
get_block_by_indexCallback that reads a serialized block for a given index.