Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
set current difficulty to minDifficulty when PoW is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega committed Mar 28, 2018
1 parent bdf2512 commit 57ef0c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libethcore/SealEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ class NoProof: public eth::SealEngineBase
public:
std::string name() const override { return "NoProof"; }
static void init();
void populateFromParent(BlockHeader& _bi, BlockHeader const& _parent) const override
{
SealEngineFace::populateFromParent(_bi, _parent);
_bi.setDifficulty(chainParams().minimumDifficulty);
}
};

}
Expand Down

0 comments on commit 57ef0c1

Please sign in to comment.