CZMQNotificationInterface::Create

Create the ZMQ notification interface from the configured endpoints.

Synopsis

Declared in <zmq/zmqnotificationinterface.h>

static
std::unique_ptr<CZMQNotificationInterface>
Create(std::function<bool(std::vector<std::byte>&, CBlockIndex const&)> get_block_by_index);

Return Value

The new interface, or nullptr if no notifiers are configured.

Parameters

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