cacheSize
|
Source (upstream pre-purge) |
Current |
| File |
consensus/ethash/algorithm.go |
algorithm.go |
| Symbol |
cacheSize |
cacheSize |
| Ref |
dde2da0ef~1 |
etc/v1.17.3-full-node |
3-way merge — purge → getc ← upstream
pre-purgecore-geth≈ adapted (origin inferred by similarity)
↗// cacheSize returns the size of the ethash verification cache that belongs to a certain
// block number.
↗func cacheSize(epoch uint64) uint64 {
↗ return cacheSizes[int(epoch)]
≈ return calcCacheSize(int(epoch))
core-geth validation — +1 -1
| | |
|---|---|
| File | [`algorithm.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/consensus/ethash/algorithm.go) |
| Symbol | `cacheSize` |
| Ref | `v1.12.20` |
--- a/core-geth/consensus/ethash/algorithm.go
+++ b/etc/consensus/ethash/algorithm.go
@@ -4,5 +4,5 @@
if epoch < maxEpoch {
return cacheSizes[int(epoch)]
}
- return calcCacheSize(epoch)
+ return calcCacheSize(int(epoch))
}
← Consensus & Ethash