P2Pool-nano: display correct parameters at start-up

This commit is contained in:
SChernykh
2025-05-28 17:47:18 +02:00
parent 8333f7800f
commit b589d373ea
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -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);