Construct the index over a given chain interface.
Declared in <index/base.h>
BaseIndex(
std::unique_ptr<interfaces::Chain> chain,
std::string name,
std::string thread_name);
| Name | Description |
|---|---|
| chain | Interface used to query the blockchain. |
| name | Human-readable name of the index. |
| thread_name | Name given to the background sync thread. |