go-ethereum/consensus
Péter Szilágyi a5fe7353cf
common: drop BigMin and BigMax, they pollute our dep graph (#30645)
Way back we've added `common.math.BigMin` and `common.math.BigMax`.
These were kind of cute helpers, but unfortunate ones, because package
all over out codebase added dependencies to this package just to avoid
having to write out 3 lines of code.

Because of this, we've also started having package name clashes with the
stdlib `math`, which got solves even more badly by moving some helpers
over ***from*** the stdlib into our custom lib (e.g. MaxUint64). The
latter ones were nuked out in a previous PR and this PR nukes out BigMin
and BigMax, inlining them at all call sites.

As we're transitioning to uint256, if need be, we can add a min and max
to that.
2024-10-21 12:45:33 +03:00
..
beacon consensus/beacon, core/types: add verkle witness builder (#30129) 2024-08-29 14:50:27 +02:00
clique consensus/clique, miner: remove clique -> accounts dependency (#30642) 2024-10-21 09:24:28 +03:00
ethash common: drop BigMin and BigMax, they pollute our dep graph (#30645) 2024-10-21 12:45:33 +03:00
misc common: drop BigMin and BigMax, they pollute our dep graph (#30645) 2024-10-21 12:45:33 +03:00
consensus.go core: refactor consensus interface (#29283) 2024-03-20 14:58:47 +01:00
errors.go consensus/beacon: check that only the latest pow block is valid ttd block (#25187) 2022-06-29 15:13:19 +03:00