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

Update go/ethereum to v1.15.5 #145

Conversation

rafalio-cb
Copy link
Contributor

  • Updates to newest go/ethereum v1.15.5
  • Since it pulls newer go, I will release this as v0.1.0, up from 0.0.22

@cb-heimdall
Copy link

cb-heimdall commented Mar 5, 2025

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@@ -601,20 +603,18 @@ func FlattenTraces(data *Call, flattened []*FlatCall) []*FlatCall {
// https://github.com/ethereum/go-ethereum/blob/master/consensus/ethash/consensus.go#L646-L653
func (ec *SDKClient) miningReward(
currentBlock *big.Int,
) int64 {
) *uint256.Int {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Making this a uint256 like the newest version of go-ethereum , they switched internally everything to it, @xiaying-peng

@@ -624,7 +624,7 @@ func (ec *SDKClient) BlockRewardTransaction(
uncles []*EthTypes.Header,
) *RosettaTypes.Transaction {
var ops []*RosettaTypes.Operation
miningReward := ec.miningReward(big.NewInt(blockIdentifier.Index))
miningReward := ec.miningReward(big.NewInt(blockIdentifier.Index)).Uint64()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

afaik this will be totally fine here, and i dont' want to go adn update everything to 256 just to bring in the new go/ethereum version

@rafalio-cb rafalio-cb changed the title Rafalio/mesh geth sdk upgrade 1740185386 Update go/ethereum to v1.15.5 Mar 5, 2025
- RepoNotEmpty
- Brakeman
- BundleAudit
# - Gosec
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was necessary as it seems broken for any recent (go >= 1.23) go version, where it's required to have the go verison listed as 1.X.Y including minor, and these parsers fail to parse that.

@rafalio-cb rafalio-cb merged commit f798d33 into coinbase:master Mar 5, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants