Fixed min difficulty setting

pull/238/head
SChernykh 2023-01-18 16:08:07 +01:00
parent 451778d704
commit 420cb71990
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,6 @@ SideChain::SideChain(p2pool* pool, NetworkType type, const char* pool_name)
, m_minDifficulty(MIN_DIFFICULTY, 0)
, m_chainWindowSize(2160)
, m_unclePenalty(20)
, m_curDifficulty(m_minDifficulty)
, m_precalcFinished(false)
{
if (s_networkType == NetworkType::Invalid) {
@ -86,6 +85,8 @@ SideChain::SideChain(p2pool* pool, NetworkType type, const char* pool_name)
PANIC_STOP();
}
m_curDifficulty = m_minDifficulty;
uv_rwlock_init_checked(&m_sidechainLock);
uv_mutex_init_checked(&m_seenWalletsLock);
uv_mutex_init_checked(&m_seenBlocksLock);