MCPcopy Create free account
hub / github.com/ElementsProject/elements / CoinStatsIndex

Method CoinStatsIndex

src/index/coinstatsindex.cpp:104–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102std::unique_ptr<CoinStatsIndex> g_coin_stats_index;
103
104CoinStatsIndex::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
112bool CoinStatsIndex::WriteBlock(const CBlock& block, const CBlockIndex* pindex)
113{

Callers

nothing calls this directly

Calls 1

create_directoriesFunction · 0.85

Tested by

no test coverage detected