Skip to content

Conversation

@kdeme
Copy link
Contributor

@kdeme kdeme commented Nov 4, 2025

And be more consistent in the naming + use fields as per EIPs

relying on status-im/nim-eth#826

return

let forkId = p.forkId()
if p.lastForkId == forkId:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason the == here fails with

Expression: x.hash == y.hash
  [1] x.hash: Bytes4
  [2] y.hash: Bytes4

without the added == here:
status-im/nim-eth@21ba892#diff-fdc22bb681374a71a5a754cf46c5ade4b1c54c35c66f163533e86879bab9228aR190-R193

It shouldn't be needed though, and in fact in testing equals win forkid_test.nim, it does work without the added ==.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, it works without the specific ForkId == added, by adding eth/common/base import in p2p.nim (or exporting base in peer_pool.nim. So I'll go that route.

Depends on order I guess and hitting p2p.nim first,
basically instantiation here https://github.com/status-im/nimbus-eth1/blob/master/execution_chain/networking/p2p.nim#L116 ?

@kdeme kdeme marked this pull request as ready for review November 5, 2025 15:26
@kdeme kdeme force-pushed the rework-forkid-chainforkid branch from fc25e4e to a3639d2 Compare November 5, 2025 17:16
@kdeme kdeme merged commit c7d5ccf into master Nov 5, 2025
18 checks passed
@kdeme kdeme deleted the rework-forkid-chainforkid branch November 5, 2025 20:50
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.

1 participant