Skip to content

Fix Bugs In Sync From Head #15006

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
merged 2 commits into from
Mar 2, 2025
Merged

Fix Bugs In Sync From Head #15006

merged 2 commits into from
Mar 2, 2025

Conversation

nisdas
Copy link
Contributor

@nisdas nisdas commented Mar 1, 2025

What type of PR is this?

Bug Fix

What does this PR do? Why is it needed?

  • When setting up the forkchoice tree it sets the head as the finalized block at the start.
  • In buildForkchoiceChain we were overshadowing the root variable which led to the incorrect root being used when building roblock
  • Add a defered unlock for the forkchoice mutex
  • Fix our feature config to take the correct flag values from the cli context.

Which issues(s) does this PR fix?

Fixes Bugs with #15000

Other notes for review

Acknowledgements

  • [x ] I have read CONTRIBUTING.md.
  • [x ] I have included a uniquely named changelog fragment file.
  • [x ] I have added a description to this PR with sufficient context for reviewers to understand this PR.

@nisdas nisdas requested a review from a team as a code owner March 1, 2025 13:05
@nisdas nisdas requested review from prestonvanloon, potuz and terencechain and removed request for a team March 1, 2025 13:05
Copy link
Contributor

@potuz potuz left a comment

Choose a reason for hiding this comment

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

Thanks

@potuz potuz merged commit 82ab5fd into sync_from_head Mar 2, 2025
12 of 15 checks passed
@potuz potuz deleted the sync_from_head_patch branch March 2, 2025 10:56
potuz pushed a commit that referenced this pull request Mar 2, 2025
github-merge-queue bot pushed a commit that referenced this pull request Mar 10, 2025
* Add feature flag to start from any beacon block in db

The new feature flag called --sync-from takes a string that can take
values:

- `head` or
- a 0x-prefixed hex encoded beacon block root.

The beacon block root or the head block root has to be known in db and
has to be a descendant of the current justified checkpoint.

* Fix Bugs In Sync From Head (#15006)

* Fix Bugs

* Remove log

* missing save

* add tests

* Kasey review #1

* Kasey's review #2

* Kasey's review #3

---------

Co-authored-by: Nishant Das <[email protected]>
rkapka pushed a commit that referenced this pull request Mar 19, 2025
* Add feature flag to start from any beacon block in db

The new feature flag called --sync-from takes a string that can take
values:

- `head` or
- a 0x-prefixed hex encoded beacon block root.

The beacon block root or the head block root has to be known in db and
has to be a descendant of the current justified checkpoint.

* Fix Bugs In Sync From Head (#15006)

* Fix Bugs

* Remove log

* missing save

* add tests

* Kasey review #1

* Kasey's review #2

* Kasey's review #3

---------

Co-authored-by: Nishant Das <[email protected]>
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