Skip to content

Conversation

@julienrbrt
Copy link
Member

Overview

@julienrbrt julienrbrt requested a review from a team as a code owner January 28, 2026 10:19
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @julienrbrt, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on updating the ev-abci module to align with the latest release candidate versions of ev-node and ev-node/core. It involves dependency updates, code cleanup, and adjustments to reflect API changes in the updated libraries. The PR ensures compatibility with the newer ev-node ecosystem and incorporates the latest improvements and fixes.

Highlights

  • Dependency Updates: This PR updates the ev-node and ev-node/core dependencies to release candidate versions (rc.1), reflecting a move towards more stable releases.
  • Module Management: The PR removes a temporary replace directive in go.mod, indicating that the direct replacement of ev-node modules is no longer needed.
  • Dependency Version Bumps: Several indirect and direct dependencies have been updated, including cometbft, go-header, filecoin-project/go-jsonrpc, and various google.golang.org/genproto packages, ensuring compatibility and potentially incorporating bug fixes and performance improvements.
  • Code Cleanup: Removes unused imports and updates related code to align with the new ev-node and core libraries.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates dependencies in go.mod and go.sum, including ev-node and cometbft, and removes an unnecessary keytransform wrapper. The InitChain and ExecuteTxs methods in pkg/adapter/adapter.go are modified to align with the updated execution.Executor interface, removing uint64 from their return signatures. The review comments highlight the need to ensure that all call sites are updated to reflect these signature changes.

if a.AppGenesis.GenesisTime != genesisTime {
err := fmt.Errorf("genesis time mismatch: expected %s, got %s", a.AppGenesis.GenesisTime, genesisTime)
return nil, 0, err
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The return signature for InitChain has changed, removing uint64 from the return values. Ensure that all call sites are updated to reflect this change.

if a.AppGenesis.ChainID != chainID {
err := fmt.Errorf("chain ID mismatch: expected %s, got %s", a.AppGenesis.ChainID, chainID)
return nil, 0, err
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The return signature for InitChain has changed, removing uint64 from the return values. Ensure that all call sites are updated to reflect this change.

if initialHeight != uint64(a.AppGenesis.InitialHeight) {
err := fmt.Errorf("initial height mismatch: expected %d, got %d", a.AppGenesis.InitialHeight, initialHeight)
return nil, 0, err
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The return signature for InitChain has changed, removing uint64 from the return values. Ensure that all call sites are updated to reflect this change.

})
if err != nil {
return nil, 0, fmt.Errorf("app initialize chain: %w", err)
return nil, fmt.Errorf("app initialize chain: %w", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The return signature for InitChain has changed, removing uint64 from the return values. Ensure that all call sites are updated to reflect this change.

vals, err := cmttypes.PB2TM.ValidatorUpdates(res.Validators)
if err != nil {
return nil, 0, fmt.Errorf("validator updates: %w", err)
return nil, fmt.Errorf("validator updates: %w", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The return signature for InitChain has changed, removing uint64 from the return values. Ensure that all call sites are updated to reflect this change.

}()
if err != nil {
return nil, 0, err
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The return signature for ExecuteTxs has changed, removing uint64 from the return values. Ensure that all call sites are updated to reflect this change.


if err := a.Store.SaveBlockID(ctx, blockHeight, currentBlockID); err != nil {
return nil, 0, fmt.Errorf("save block ID: %w", err)
return nil, fmt.Errorf("save block ID: %w", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The return signature for ExecuteTxs has changed, removing uint64 from the return values. Ensure that all call sites are updated to reflect this change.

// save response before the events are fired (current behaviour in CometBFT)
if err := a.Store.SaveBlockResponse(ctx, blockHeight, fbResp); err != nil {
return nil, 0, fmt.Errorf("save block response: %w", err)
return nil, fmt.Errorf("save block response: %w", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The return signature for ExecuteTxs has changed, removing uint64 from the return values. Ensure that all call sites are updated to reflect this change.


if err := fireEvents(a.EventBus, abciBlock, currentBlockID, fbResp, validatorUpdates); err != nil {
return nil, 0, fmt.Errorf("fire events: %w", err)
return nil, fmt.Errorf("fire events: %w", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The return signature for ExecuteTxs has changed, removing uint64 from the return values. Ensure that all call sites are updated to reflect this change.

a.Logger.Info("block executed successfully", "height", blockHeight, "appHash", fmt.Sprintf("%X", fbResp.AppHash))

return fbResp.AppHash, uint64(s.ConsensusParams.Block.MaxBytes), nil
return fbResp.AppHash, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The return signature for ExecuteTxs has changed, removing uint64 from the return values. Ensure that all call sites are updated to reflect this change.

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.

2 participants