Fixed min difficulty setting

pull/1/head
SChernykh 1 year ago
parent 451778d704
commit 420cb71990

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

Loading…
Cancel
Save