Browse Source

Min 1024 on difficulty.

cl-refactor
Gav Wood 10 years ago
parent
commit
2d90602182
  1. 2
      libethcore/BlockInfo.cpp

2
libethcore/BlockInfo.cpp

@ -191,7 +191,7 @@ u256 BlockInfo::calculateDifficulty(BlockInfo const& _parent) const
if (!parentHash)
return c_genesisDifficulty;
else
return timestamp >= _parent.timestamp + (c_protocolVersion == 49 ? 5 : 8) ? _parent.difficulty - (_parent.difficulty >> 10) : (_parent.difficulty + (_parent.difficulty >> 10));
return max<u256>(1024, timestamp >= _parent.timestamp + (c_protocolVersion == 49 ? 5 : 8) ? _parent.difficulty - (_parent.difficulty >> 10) : (_parent.difficulty + (_parent.difficulty >> 10)));
}
void BlockInfo::verifyParent(BlockInfo const& _parent) const

Loading…
Cancel
Save