Added --no-cache command line parameter

This commit is contained in:
SChernykh
2021-10-16 13:45:28 +02:00
parent 285560e120
commit 816a29c5ab
4 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ namespace p2pool {
P2PServer::P2PServer(p2pool* pool)
: TCPServer(P2PClient::allocate)
, m_pool(pool)
, m_cache(new BlockCache())
, m_cache(pool->params().m_blockCache ? new BlockCache() : nullptr)
, m_cacheLoaded(false)
, m_initialPeerList(pool->params().m_p2pPeerList)
, m_rd{}