Skip to content
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

Default totalDifficulty to 0 when fetching Fast Sync settings #7785

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

emlautarom1
Copy link
Contributor

Changes

  • Default totalDifficulty to 0 when fetching Fast Sync settings

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

Notes on testing

Tested by running our Python script: https://github.com/NethermindEth/nethermind/blob/42a603b49aa7cc975d744daab7e8e8b547b109d9/scripts/syncSettings.py

Documentation

Requires documentation update

  • Yes
  • No

Requires explanation in Release Notes

  • Yes
  • No

Remarks

The totalDifficulty field of a block is no longer required by the ETH JSON-RPC spec given the transition to PoS, and we can safely default it to 0 when it's not present (see ethereum/execution-apis#570).

@emlautarom1 emlautarom1 requested review from rubo and a team as code owners November 21, 2024 15:18
@kamilchodola
Copy link
Contributor

#7786

It worked so we can merge

@emlautarom1 emlautarom1 merged commit f79325c into master Nov 21, 2024
80 checks passed
@emlautarom1 emlautarom1 deleted the fix/sync-script-pivot-td branch November 21, 2024 15:27
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