Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: get rid of custom MaxUint64 and MaxUint64 #30636

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

karalabe
Copy link
Member

Our own common/math package had MaxInt64 and MaxUint64 redeclared. A bunch of code throughout go-ethereum used these instead of the stdlib math variants. This is bad because it introduces a pointless dependency from various packages to common (common/math depends on common, different story to break).

Either way, whilst it may be nice to write math.MaxUint64 from code where we also mess with math.MaxBig and other methods, it's really to little of a nicety gain for messing up dependencies. This PR removes these constants and just points all user code to stdlib math instead.

@karalabe karalabe added this to the 1.14.12 milestone Oct 20, 2024
@karalabe karalabe merged commit 48d05c4 into ethereum:master Oct 20, 2024
2 of 3 checks passed
zfy0701 pushed a commit to sentioxyz/go-ethereum that referenced this pull request Dec 3, 2024
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Dec 19, 2024
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Dec 21, 2024
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Dec 26, 2024
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant