From 8304d8196143ebea2e8d9bb93a9609b080f28b50 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Fri, 27 Aug 2021 11:30:03 +0200 Subject: [PATCH] Prepare for mainnet test --- src/log.cpp | 2 +- src/side_chain.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/log.cpp b/src/log.cpp index fe4aa21..672d430 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -28,7 +28,7 @@ namespace p2pool { namespace log { -int GLOBAL_LOG_LEVEL = 5; +int GLOBAL_LOG_LEVEL = 4; static volatile bool stopped = false; static volatile bool worker_started = false; diff --git a/src/side_chain.cpp b/src/side_chain.cpp index 46ec91f..48e2009 100644 --- a/src/side_chain.cpp +++ b/src/side_chain.cpp @@ -44,7 +44,7 @@ static constexpr char log_category_prefix[] = "SideChain "; -constexpr uint64_t MIN_DIFFICULTY = 1000; +constexpr uint64_t MIN_DIFFICULTY = 100000; constexpr size_t UNCLE_BLOCK_DEPTH = 3; static_assert(1 <= UNCLE_BLOCK_DEPTH && UNCLE_BLOCK_DEPTH <= 10, "Invalid UNCLE_BLOCK_DEPTH"); @@ -56,7 +56,7 @@ SideChain::SideChain(p2pool* pool, NetworkType type) , m_networkType(type) , m_chainTip(nullptr) , m_poolName("default") - , m_targetBlockTime(1) + , m_targetBlockTime(10) , m_minDifficulty(MIN_DIFFICULTY, 0) , m_chainWindowSize(2160) , m_unclePenalty(20)