Skip to content

fix(l1): update rpc-compat hive tests to Prague and fix failing ones#2043

Merged
JulianVentura merged 9 commits into
mainfrom
fix/hive-total-difficulty-nonce
Feb 21, 2025
Merged

fix(l1): update rpc-compat hive tests to Prague and fix failing ones#2043
JulianVentura merged 9 commits into
mainfrom
fix/hive-total-difficulty-nonce

Conversation

@JulianVentura

@JulianVentura JulianVentura commented Feb 20, 2025

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Feb 20, 2025

Copy link
Copy Markdown
| File                                                                 | Lines | Diff |
+----------------------------------------------------------------------+-------+------+
| /home/runner/work/ethrex/ethrex/crates/common/types/transaction.rs   | 2486  | +1   |
+----------------------------------------------------------------------+-------+------+
| /home/runner/work/ethrex/ethrex/crates/networking/rpc/eth/block.rs   | 352   | -18  |
+----------------------------------------------------------------------+-------+------+
| /home/runner/work/ethrex/ethrex/crates/networking/rpc/types/block.rs | 180   | -3   |
+----------------------------------------------------------------------+-------+------+

Total lines added: +1
Total lines removed: 21
Total lines changed: 22

@JulianVentura JulianVentura marked this pull request as ready for review February 20, 2025 21:41
@JulianVentura JulianVentura requested a review from a team as a code owner February 20, 2025 21:42
@JulianVentura JulianVentura changed the title fix(l1): remove total_difficulty and fix nonce serialization fix(l1): update rpc-compat hive tests to Prague and fix failing ones Feb 20, 2025
- name: "Rpc Compat tests"
simulation: ethereum/rpc-compat
test_pattern: /eth_chainId|eth_getTransactionByBlockHashAndIndex|eth_getTransactionByBlockNumberAndIndex|eth_getCode|eth_getStorageAt|eth_call|eth_getTransactionByHash|eth_getBlockByHash|eth_getBlockByNumber|eth_createAccessList|eth_getBlockTransactionCountByNumber|eth_getBlockTransactionCountByHash|eth_getBlockReceipts|eth_getTransactionReceipt|eth_blobGasPrice|eth_blockNumber|ethGetTransactionCount|debug_getRawHeader|debug_getRawBlock|debug_getRawTransaction|debug_getRawReceipts|eth_estimateGas|eth_getBalance|eth_sendRawTransaction|eth_getProof|eth_getLogs|eth_syncing
test_pattern: /debug_getRawBlock|debug_getRawHeader|debug_getRawReceipts|debug_getRawTransaction|eth_blobBaseFee|eth_blockNumber|eth_call|eth_chainId|eth_createAccessList|eth_estimateGas|eth_getBalance|eth_getBlockByHash|eth_getBlockByNumber|eth_getBlockReceipts|eth_getBlockTransactionCountByHash|eth_getBlockTransactionCountByNumber|eth_getCode|eth_getLogs|eth_getProof|eth_getStorageAt|eth_getTransactionByBlockHashAndIndex|eth_getTransactionByBlockNumberAndIndex|eth_getTransactionByHash|eth_getTransactionCount|eth_getTransactionReceipt|eth_sendRawTransaction|eth_syncing

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.

If I understand correctly, we would pass all tests now. Cant we remove test pattern then?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not yet, we are still missing feeHistory test, which will be added on #1797. That PR depends on this one in order to be merged!

Ok(None)
}

fn total_difficulty_check<'a>(

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.

At some point we removed total difficulty, but we had to reintroduce it again, I can't remember why. @avilagaston9 do you remember?

Otherwise, love the red!

@avilagaston9 avilagaston9 Feb 21, 2025

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.

I wasn't in the project when it was added again. But maybe we shouldn't remove this check, it was added here: #577. Maybe we should just skip serializing instead.

@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.

🚀 +1 pending Gaston's confirmation

@avilagaston9 avilagaston9 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.

🚀

@JulianVentura JulianVentura added this pull request to the merge queue Feb 21, 2025
Merged via the queue into main with commit 34fbff9 Feb 21, 2025
@JulianVentura JulianVentura deleted the fix/hive-total-difficulty-nonce branch February 21, 2025 18:57
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>
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
#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>
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>
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.

3 participants