Skip to content

fix: revert "fix: remove totalDifficulty (#347)" #566

Merged
fmoletta merged 5 commits into
mainfrom
revert-ttd-removal
Sep 26, 2024
Merged

fix: revert "fix: remove totalDifficulty (#347)" #566
fmoletta merged 5 commits into
mainfrom
revert-ttd-removal

Conversation

@fmoletta

@fmoletta fmoletta commented Sep 26, 2024

Copy link
Copy Markdown
Contributor

Motivation

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

Closes None, but is needed in order to run engine tests

@fmoletta fmoletta changed the title fix: Revert "fix: remove totalDifficulty (#347)" fix: revert "fix: remove totalDifficulty (#347)" Sep 26, 2024
@fmoletta fmoletta marked this pull request as ready for review September 26, 2024 15:20
@fmoletta fmoletta requested a review from a team as a code owner September 26, 2024 15:20
@fmoletta fmoletta added this pull request to the merge queue Sep 26, 2024
Merged via the queue into main with commit 42afa4f Sep 26, 2024
@fmoletta fmoletta deleted the revert-ttd-removal branch September 26, 2024 15:33
github-merge-queue Bot pushed a commit that referenced this pull request Feb 21, 2025
#2043)

**Description**

This PR updates the hive tests suite to a new hive revision and fixes
new tests by removing the `total_difficulty` field on the block scheme.
This field was already removed in #304 and reintroduced in #566 due to
the usage in hive engine test suite.

Hive tests related to the wrong encoding of `nonce` field were also
fixed

---------

Co-authored-by: Julian Ventura <julian.ventura@lambdaclass.com>
github-merge-queue Bot pushed a commit that referenced this pull request Feb 25, 2025
**Description**

This PR fully removes `total_difficulty` field, as already done on #307,
but later reverted on #566.
While doing so, it also removes the `total_difficulty_check` function,
so it solves #790

Closes #790

---------

Co-authored-by: Julian Ventura <julian.ventura@lambdaclass.com>
JereSalo pushed a commit that referenced this pull request Feb 28, 2025
#2043)

**Description**

This PR updates the hive tests suite to a new hive revision and fixes
new tests by removing the `total_difficulty` field on the block scheme.
This field was already removed in #304 and reintroduced in #566 due to
the usage in hive engine test suite.

Hive tests related to the wrong encoding of `nonce` field were also
fixed

---------

Co-authored-by: Julian Ventura <julian.ventura@lambdaclass.com>
JereSalo pushed a commit that referenced this pull request Feb 28, 2025
**Description**

This PR fully removes `total_difficulty` field, as already done on #307,
but later reverted on #566.
While doing so, it also removes the `total_difficulty_check` function,
so it solves #790

Closes #790

---------

Co-authored-by: Julian Ventura <julian.ventura@lambdaclass.com>
fkrause98 pushed a commit that referenced this pull request Mar 5, 2025
#2043)

**Description**

This PR updates the hive tests suite to a new hive revision and fixes
new tests by removing the `total_difficulty` field on the block scheme.
This field was already removed in #304 and reintroduced in #566 due to
the usage in hive engine test suite.

Hive tests related to the wrong encoding of `nonce` field were also
fixed

---------

Co-authored-by: Julian Ventura <julian.ventura@lambdaclass.com>
fkrause98 pushed a commit that referenced this pull request Mar 5, 2025
**Description**

This PR fully removes `total_difficulty` field, as already done on #307,
but later reverted on #566.
While doing so, it also removes the `total_difficulty_check` function,
so it solves #790

Closes #790

---------

Co-authored-by: Julian Ventura <julian.ventura@lambdaclass.com>
fkrause98 pushed a commit that referenced this pull request Mar 5, 2025
#2043)

**Description**

This PR updates the hive tests suite to a new hive revision and fixes
new tests by removing the `total_difficulty` field on the block scheme.
This field was already removed in #304 and reintroduced in #566 due to
the usage in hive engine test suite.

Hive tests related to the wrong encoding of `nonce` field were also
fixed

---------

Co-authored-by: Julian Ventura <julian.ventura@lambdaclass.com>
fkrause98 pushed a commit that referenced this pull request Mar 5, 2025
**Description**

This PR fully removes `total_difficulty` field, as already done on #307,
but later reverted on #566.
While doing so, it also removes the `total_difficulty_check` function,
so it solves #790

Closes #790

---------

Co-authored-by: Julian Ventura <julian.ventura@lambdaclass.com>
pedrobergamini pushed a commit to pedrobergamini/ethrex that referenced this pull request Aug 24, 2025
lambdaclass#2043)

**Description**

This PR updates the hive tests suite to a new hive revision and fixes
new tests by removing the `total_difficulty` field on the block scheme.
This field was already removed in lambdaclass#304 and reintroduced in lambdaclass#566 due to
the usage in hive engine test suite.

Hive tests related to the wrong encoding of `nonce` field were also
fixed

---------

Co-authored-by: Julian Ventura <julian.ventura@lambdaclass.com>
pedrobergamini pushed a commit to pedrobergamini/ethrex that referenced this pull request Aug 24, 2025
**Description**

This PR fully removes `total_difficulty` field, as already done on lambdaclass#307,
but later reverted on lambdaclass#566.
While doing so, it also removes the `total_difficulty_check` function,
so it solves lambdaclass#790

Closes lambdaclass#790

---------

Co-authored-by: Julian Ventura <julian.ventura@lambdaclass.com>
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