We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7af2e commit 1ab30ceCopy full SHA for 1ab30ce
src/main/scala/io/iohk/ethereum/consensus/ethash/EthashMiner.scala
@@ -62,7 +62,7 @@ class EthashMiner(
62
.getBlockForMining(blockValue)
63
.map {
64
case PendingBlockAndState(PendingBlock(block, _), _) => {
65
- val blockNumber = block.header.number.toLong + 1
+ val blockNumber = block.header.number.toLong
66
val epoch = EthashUtils.epoch(blockNumber, blockCreator.blockchainConfig.ecip1099BlockNumber.toLong)
67
val (dag, dagSize) = calculateDagSize(blockNumber, epoch)
68
val headerHash = crypto.kec256(BlockHeader.getEncodedWithoutNonce(block.header))
0 commit comments