Skip to content

Conversation

kamilchodola
Copy link
Contributor

@kamilchodola kamilchodola commented Feb 4, 2025

TD was removed probably from RPC endpoints and defaults to 0 which is wrong.
Made change so PoS chains will not get affected in future.

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

If yes, did you write tests?

  • Yes
  • No

@kamilchodola kamilchodola requested review from rubo and a team as code owners February 4, 2025 09:12
Co-authored-by: kamilchodola <kamilchodola@users.noreply.github.com>
data['Sync']['PivotNumber'] = baseBlock
data['Sync']['PivotHash'] = pivotHash

if not isPoS:
data['Sync']['PivotTotalDifficulty'] = str(pivotTotalDifficulty)
Copy link
Contributor

Choose a reason for hiding this comment

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

So it does not set it now? And set to null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will simply not change it json - so keep current value for PoS chains as it is static since merge.

@kamilchodola kamilchodola merged commit ae13ee2 into master Feb 4, 2025
110 of 111 checks passed
@kamilchodola kamilchodola deleted the kch/td-fix branch February 4, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants