Skip to content

Commit

Permalink
fix epoch zero bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hackmod committed Sep 11, 2020
1 parent bc628f6 commit 515df7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpoolprotocols/PoolManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ void PoolManager::setClientHandlers()
// If epoch is valued in workpackage take it
if (wp.epoch == -1)
{
if (m_currentWp.block > 0)
if (m_currentWp.block >= 0)
m_currentWp.epoch = m_currentWp.block / 30000;
else
m_currentWp.epoch = ethash::find_epoch_number(
Expand Down

0 comments on commit 515df7a

Please sign in to comment.