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

[NIT-2602] Use Golang version 1.23 #2711

Merged
merged 10 commits into from
Oct 1, 2024
Merged

Conversation

gligneul
Copy link
Contributor

@gligneul gligneul commented Sep 30, 2024

Related go-ethereum PR: OffchainLabs/go-ethereum#363

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Sep 30, 2024
@gligneul gligneul changed the title Use Golang version 1.23 [NIT-2602] Use Golang version 1.23 Sep 30, 2024
@gligneul gligneul marked this pull request as ready for review September 30, 2024 23:12
@PlasmaPower
Copy link
Collaborator

Instead of the ldflags, let's just drop memsize as upstream geth did and cherry-pick this patch ethereum/go-ethereum@e467577

@@ -59,7 +59,7 @@ jobs:
cd go-ethereum
# Enable KZG point evaluation precompile early
sed -i 's#var PrecompiledContractsBerlin = map\[common.Address\]PrecompiledContract{#\0 common.BytesToAddress([]byte{0x0a}): \&kzgPointEvaluation{},#g' core/vm/contracts.go
go build -o /usr/local/bin/geth ./cmd/geth
go build -o /usr/local/bin/geth -ldflags='-checklinkname=0' ./cmd/geth
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just update the pinned geth version above from v1.13.8 to the latest release. We might not even need the patch applied above anymore to enable the KZG evaluation precompile.

Copy link
Collaborator

@PlasmaPower PlasmaPower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PlasmaPower PlasmaPower merged commit 7a3d6e6 into master Oct 1, 2024
17 checks passed
@PlasmaPower PlasmaPower deleted the gligneul/upgrade-golang branch October 1, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-approved s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants