Constructs the index, which becomes available to be queried.
Declared in <index/coinstatsindex.h>
explicit
CoinStatsIndex(
std::unique_ptr<interfaces::Chain> chain,
size_t n_cache_size,
bool f_memory = false,
bool f_wipe = false);
| Name | Description |
|---|---|
| chain | Interface used to query the blockchain. |
| n_cache_size | Size of the database cache, in bytes. |
| f_memory | Keep the database in memory instead of on disk. |
| f_wipe | Erase any existing database before opening. |