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}
)