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

refactor: extract trin-execution/e2store + clean dependencies #1326

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

KolbyML
Copy link
Member

@KolbyML KolbyML commented Jun 21, 2024

What was wrong?

  • Trin Execution started in portal-bridge types, but was rapidly outgrowing its position here.
  • E2store (era/era1 support) is useful for more then just the bridge
  • we had a lot of unused dependencies in our Cargo.toml files

How was it fixed?

  1. I moved Trin Execution into its own crate, which will allow development of it to expand. It will also allow 3rd party contributors from the EPF to more easily find it to contribute to it. I have already had a person who thought it was a cool project.
  2. I moved e2store/era/era1 to it's own crate
  3. I cleaned up our dependencies

@KolbyML KolbyML changed the title refactor: extract trin-executioin/e2store + clean dependencies refactor: extract trin-execution/e2store + clean dependencies Jun 21, 2024
@KolbyML KolbyML force-pushed the trin-execution branch 3 times, most recently from 0855667 to 4476f6f Compare June 22, 2024 02:59
@KolbyML KolbyML requested review from ogenev and morph-dev June 22, 2024 03:04
@KolbyML KolbyML self-assigned this Jun 22, 2024
@KolbyML KolbyML marked this pull request as ready for review June 22, 2024 03:04

## What is era1

era1 is a format for storing all of Ethereum's post merge blocks. It contains block headers, block bodies, and receipts for block 0-15537394
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Should this be pre-merge?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I meant in the first sentence:

era1 is a format for storing all of Ethereum's post merge blocks

Should this be "post merge" or "pre merge"?

surf = { version = "2.3.2", default-features = false, features = ["h1-client-rustls", "middleware-logger", "encoding"] } # we use rustls because OpenSSL cause issues compiling on aarch64
test-log = { version = "0.2.11", features = ["trace"] }
tokio = { version = "1.14.0", features = ["full"] }
tracing-test = "0.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Is there newline at the end? I think it should be.

const ERA1_FILE_COUNT: usize = 1897;

/// Fetches era1 files hosted on era1.ethportal.net and shuffles them
async fn get_shuffled_era1_files(http_client: &Client) -> anyhow::Result<Vec<String>> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: maybe move this into e2store? Something like test_utils?

@KolbyML KolbyML merged commit e7092c2 into ethereum:master Jun 24, 2024
8 checks passed
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