-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update go/ethereum to v1.15.5 #145
Conversation
rafalio-cb
commented
Mar 5, 2025
- 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
✅ Heimdall Review Status
|
@@ -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 { |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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
- RepoNotEmpty | ||
- Brakeman | ||
- BundleAudit | ||
# - Gosec |
There was a problem hiding this comment.
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.