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

Need to fix some misconception in ForkedChain #2949

Open
5 tasks
jangko opened this issue Dec 18, 2024 · 0 comments
Open
5 tasks

Need to fix some misconception in ForkedChain #2949

jangko opened this issue Dec 18, 2024 · 0 comments

Comments

@jangko
Copy link
Contributor

jangko commented Dec 18, 2024

  • No more cursordesc, cursorheads, pivotarc, arc. Just heads and branches like what the community call them.
  • updateFinalized happen before updateBase.
  • updateFinalized will responsible for pruning branches that is no longer can reach finalizedHead.
  • updateBase will move base forward up to allowed distance, or to the nearest junction of a fork.
  • Replay to target block using a list built during traverse backward from target block to a known block.

see also:
https://github.com/status-im/nimbus-eth2/blob/412ea71115ce6dded2841f18320c91feb86bf372/beacon_chain/consensus_object_pools/blockchain_dag.nim#L1963

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant