Skip to content

MakeCache

Source (upstream pre-purge) Current
File consensus/ethash/ethash.go ethash.go
Symbol MakeCache MakeCache
Ref dde2da0ef~1 etc/v1.17.3-full-node

3-way merge — purge → getc ← upstream

pre-purgecore-geth
// MakeCache generates a new ethash cache and optionally stores it to disk.
func MakeCache(block uint64, epochLength uint64, dir string) {
epoch := calcEpoch(block, epochLength)
c := cache{epoch: epoch, epochLength: epochLength}
c.generate(dir, math.MaxInt32, false, false)
}
core-geth validation — **Identical** ✅ | | | |---|---| | File | [`ethash.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/consensus/ethash/ethash.go) | | Symbol | `MakeCache` | | Ref | `v1.12.20` |

← Consensus & Ethash