BaseIndex::BaseIndex

Construct the index over a given chain interface.

Synopsis

Declared in <index/base.h>

BaseIndex(
    std::unique_ptr<interfaces::Chain> chain,
    std::string name,
    std::string thread_name);

Parameters

NameDescription
chainInterface used to query the blockchain.
nameHuman-readable name of the index.
thread_nameName given to the background sync thread.