| 2457 | } |
| 2458 | |
| 2459 | CoinsCacheSizeState CChainState::GetCoinsCacheSizeState() |
| 2460 | { |
| 2461 | AssertLockHeld(::cs_main); |
| 2462 | return this->GetCoinsCacheSizeState( |
| 2463 | m_coinstip_cache_size_bytes, |
| 2464 | gArgs.GetIntArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000); |
| 2465 | } |
| 2466 | |
| 2467 | CoinsCacheSizeState CChainState::GetCoinsCacheSizeState( |
| 2468 | size_t max_coins_cache_size_bytes, |