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

Add background indexer #5341

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Add background indexer #5341

wants to merge 15 commits into from

Conversation

elmattic
Copy link
Contributor

@elmattic elmattic commented Feb 25, 2025

Summary of changes

Changes introduced in this pull request:

  • Make the Eth mappings indexer run in the background
  • Disable indexing by default
  • Add new sections to the configuration:
  [fevm]
  enable_eth_rpc = false
  eth_trace_filter_max_results = 500

  [chain_indexer]
  • Add FOREST_FEVM_ENABLE_ETH_RPC environment variable
  • Remove eth_mapping_ttl from [client] config section

Reference issue to close (if applicable)

Closes #4505

Other information and links

Change checklist

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation. All new code adheres to the team's documentation standards,
  • I have added tests that prove my fix is effective or that my feature works (if possible),
  • I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

@elmattic
Copy link
Contributor Author

elmattic commented Feb 26, 2025

Note that the initial step of populating the index is still always performed. In a future PR, we aim to remove it entirely and provide the user full control of this process via a subcommand:

forest-tool index validate-backfill --from<epoch> --to <epoch>

This approach is similar to the one used by Lotus.

Copy link
Contributor

@lemmih lemmih left a comment

Choose a reason for hiding this comment

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

I like it. It'll make my chain muxer PR a little bit simpler.

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.

Consider making FEVM support optional
2 participants