P2Pool-nano: display correct parameters at start-up
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user