MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / InitCoinsDB

Method InitCoinsDB

src/validation.cpp:1919–1935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1917}
1918
1919void Chainstate::InitCoinsDB(
1920 size_t cache_size_bytes,
1921 bool in_memory,
1922 bool should_wipe)
1923{
1924 m_coins_views = std::make_unique<CoinsViews>(
1925 DBParams{
1926 .path = StoragePath(),
1927 .cache_bytes = cache_size_bytes,
1928 .memory_only = in_memory,
1929 .wipe_data = should_wipe,
1930 .obfuscate = true,
1931 .options = m_chainman.m_options.coins_db},
1932 m_chainman.m_options.coins_view);
1933
1934 m_coinsdb_cache_size_bytes = cache_size_bytes;
1935}
1936
1937void Chainstate::InitCoinsCache(size_t cache_size_bytes)
1938{

Callers 5

ActivateSnapshotMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
EXCLUSIVE_LOCKS_REQUIREDFunction · 0.80

Calls

no outgoing calls

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64