| 1917 | } |
| 1918 | |
| 1919 | void 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 | |
| 1937 | void Chainstate::InitCoinsCache(size_t cache_size_bytes) |
| 1938 | { |
no outgoing calls