Skip to content

Use eth69 in unit tests #8859

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

Merged

Conversation

Matilda-Clerke
Copy link
Contributor

PR description

Use eth/69 in unit tests

Fixed Issue(s)

#8728

Signed-off-by: Matilda Clerke <[email protected]>
Signed-off-by: Matilda Clerke <[email protected]>
Signed-off-by: Matilda Clerke <[email protected]>
Signed-off-by: Matilda Clerke <[email protected]>
Signed-off-by: Matilda Clerke <[email protected]>
Signed-off-by: Matilda Clerke <[email protected]>
Signed-off-by: Matilda Clerke <[email protected]>
Signed-off-by: Matilda Clerke <[email protected]>
Signed-off-by: Matilda Clerke <[email protected]>
Signed-off-by: Matilda Clerke <[email protected]>
…sSufficientValidators due to flakyness

Signed-off-by: Matilda Clerke <[email protected]>
Signed-off-by: Matilda Clerke <[email protected]>
@Matilda-Clerke
Copy link
Contributor Author

Discussed with Stefan and we decided it'd be best not to remove the total difficulty as I've done in this PR. I'll start work on reverting it now.

This reverts commit ff4526d.

Signed-off-by: Matilda Clerke <[email protected]>
This reverts commit 493b84f.

Signed-off-by: Matilda Clerke <[email protected]>
This reverts commit ea0a26c.

Signed-off-by: Matilda Clerke <[email protected]>
This reverts commit 40f8af6.

Signed-off-by: Matilda Clerke <[email protected]>
@Matilda-Clerke Matilda-Clerke force-pushed the use-eth69-for-unit-tests branch from 9cb4860 to ebec9ae Compare July 10, 2025 04:56
@Matilda-Clerke Matilda-Clerke requested a review from macfarla July 11, 2025 00:03
@@ -122,6 +122,7 @@ public static RespondingEthPeer createPeer(
return RespondingEthPeer.builder()
.ethProtocolManager(ethProtocolManager)
.totalDifficulty(td)
.capability(EthProtocol.ETH68)
Copy link
Contributor

Choose a reason for hiding this comment

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

why do these createPeer methods use ETH68?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eth69 removes total difficulty from the status message, but many of our tests rely on total difficulty in one way or another so for those tests I created peers using Eth68.

Matilda-Clerke and others added 2 commits July 11, 2025 10:56
@Matilda-Clerke Matilda-Clerke enabled auto-merge (squash) July 11, 2025 00:57
@Matilda-Clerke Matilda-Clerke merged commit c58fff2 into hyperledger:main Jul 11, 2025
51 checks passed
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