Skip to content

Commit

Permalink
code refactor Difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
ibudisteanu committed Jul 20, 2020
1 parent a23e5c5 commit 808b90d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class BlockchainDifficulty{

//avoid first Block, because the firstBlock is correlated with the last block of the POW
const PoSModulo = BlockchainGenesis.PoSModulo(blockNumber);
if ( PoSModulo && (blockNumber+1) % PoSModulo === 10 ) firstBlock += 1
if ( PoSModulo && ( (blockNumber+1) % PoSModulo === 10 ) ) firstBlock += 1

//adding blocks 0..8
for (let i = firstBlock; i < blockNumber; i++) {
Expand Down

0 comments on commit 808b90d

Please sign in to comment.