Skip to content

Commit 808b90d

Browse files
committed
code refactor Difficulty
1 parent a23e5c5 commit 808b90d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/blockchain/global/difficulty/Blockchain-Difficulty.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class BlockchainDifficulty{
129129

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

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

0 commit comments

Comments
 (0)