diff --git a/src/p2pool.cpp b/src/p2pool.cpp index 8977aa7..e3e212d 100644 --- a/src/p2pool.cpp +++ b/src/p2pool.cpp @@ -1211,7 +1211,7 @@ void p2pool::download_block_headers(uint64_t current_height) PANIC_STOP(); } }, - [this, start_height, next_height](const char* data, size_t size, double) { + [start_height, next_height](const char* data, size_t size, double) { if (size > 0) { LOGERR(1, "Couldn't download block headers for heights " << start_height << " - " << next_height << ", error " << log::const_buf(data, size)); PANIC_STOP(); diff --git a/src/side_chain.cpp b/src/side_chain.cpp index 05d0ae5..fc4df21 100644 --- a/src/side_chain.cpp +++ b/src/side_chain.cpp @@ -85,6 +85,11 @@ SideChain::SideChain(p2pool* pool, NetworkType type, const char* pool_name) LOGINFO(1, log::LightCyan() << "network type = " << type); + if (m_poolName == "nano") { + m_targetBlockTime = 30; + m_unclePenalty = 10; + } + if (m_pool && !load_config(m_pool->params().m_sidechainConfig)) { PANIC_STOP(); } @@ -105,11 +110,6 @@ SideChain::SideChain(p2pool* pool, NetworkType type, const char* pool_name) LOGINFO(1, "generating consensus ID"); - if (m_poolName == "nano") { - m_targetBlockTime = 30; - m_unclePenalty = 10; - } - char buf[log::Stream::BUF_SIZE + 1]; // cppcheck-suppress uninitvar log::Stream s(buf);