Skip to content

ethash global vars

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

two256, sharedEthash, algorithmRevision, dumpMagic, ErrInvalidDumpMagic

3-way merge — purge → getc ← upstream

pre-purge
var (
// two256 is a big integer representing 2^256
two256 = new(big.Int).Exp(big.NewInt(2), big.NewInt(256), big.NewInt(0))
// sharedEthash is a full instance that can be shared between multiple users.
sharedEthash *Ethash
// algorithmRevision is the data structure version used for file naming.
algorithmRevision = 23
// dumpMagic is a dataset dump header to sanity check a data dump.
dumpMagic = []uint32{0xbaddcafe, 0xfee1dead}
)
core-geth validation — **Identical** ✅ | | | |---|---| | File | [`ethash.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/consensus/ethash/ethash.go) | | Symbol | `two256` | | Ref | `v1.12.20` |

← Consensus & Ethash