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

View File

@@ -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();

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);