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.
2 parents 80f7c6c + 2fefe4b commit e3dfd55Copy full SHA for e3dfd55
consensus/ethash/ethash.go
@@ -308,14 +308,14 @@ func (d *dataset) release() {
308
309
// MakeCache generates a new ethash cache and optionally stores it to disk.
310
func MakeCache(block uint64, dir string) {
311
- c := cache{epoch: block/epochLength + 1}
+ c := cache{epoch: block / epochLength}
312
c.generate(dir, math.MaxInt32, false)
313
c.release()
314
}
315
316
// MakeDataset generates a new ethash dataset and optionally stores it to disk.
317
func MakeDataset(block uint64, dir string) {
318
- d := dataset{epoch: block/epochLength + 1}
+ d := dataset{epoch: block / epochLength}
319
d.generate(dir, math.MaxInt32, false)
320
d.release()
321
0 commit comments