Skip to content

fix: remove totalDifficulty#347

Merged
mpaulucci merged 1 commit into
mainfrom
remove-block-total-difficulty
Sep 5, 2024
Merged

fix: remove totalDifficulty#347
mpaulucci merged 1 commit into
mainfrom
remove-block-total-difficulty

Conversation

@avilagaston9

Copy link
Copy Markdown
Contributor

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

@avilagaston9 avilagaston9 marked this pull request as ready for review September 5, 2024 16:00
@avilagaston9 avilagaston9 requested a review from a team as a code owner September 5, 2024 16:00

@mpaulucci mpaulucci left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nice!

@mpaulucci mpaulucci added this pull request to the merge queue Sep 5, 2024

@fmoletta fmoletta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

Merged via the queue into main with commit a66dc76 Sep 5, 2024
@mpaulucci mpaulucci deleted the remove-block-total-difficulty branch September 5, 2024 16:05
fmoletta added a commit that referenced this pull request Sep 23, 2024
fmoletta added a commit that referenced this pull request Sep 26, 2024
github-merge-queue Bot pushed a commit that referenced this pull request Sep 26, 2024
**Motivation**

<!-- Why does this pull request exist? What are its goals? -->

While the rpc-compat tests can be made to work without the
totalDifficulty field by updating the execution api crate, the engine
tests panick as they still rely on it.
This PR aims to fix this issue (at least until the hive engine test
suite is updated) by reverting the removal of the field and using a
previous version of the execution api crate which still has this field

<!-- A clear and concise general description of the changes this PR
introduces -->
* Reverts #347 
* Updates hive rev to a version using a previous version of
execution-apis that still uses the totalDifficulty field
(lambdaclass/hive#6)

<!-- Link to issues: Resolves #111, Resolves #222 -->

Closes None, but is needed in order to run engine tests
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.

Remove TotalDifficulty from RpcBlock

3 participants