| 102 | std::unique_ptr<CoinStatsIndex> g_coin_stats_index; |
| 103 | |
| 104 | CoinStatsIndex::CoinStatsIndex(size_t n_cache_size, bool f_memory, bool f_wipe) |
| 105 | { |
| 106 | fs::path path{gArgs.GetDataDirNet() / "indexes" / "coinstats"}; |
| 107 | fs::create_directories(path); |
| 108 | |
| 109 | m_db = std::make_unique<CoinStatsIndex::DB>(path / "db", n_cache_size, f_memory, f_wipe); |
| 110 | } |
| 111 | |
| 112 | bool CoinStatsIndex::WriteBlock(const CBlock& block, const CBlockIndex* pindex) |
| 113 | { |
nothing calls this directly
no test coverage detected