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

Fc module various base tree admin updates #2895

Merged
merged 7 commits into from
Dec 2, 2024

Conversation

mjfh
Copy link
Contributor

@mjfh mjfh commented Dec 1, 2024

No description provided.

mjfh added 7 commits December 1, 2024 12:42
why:
  Correct `forkJunction` of canonical cursor head record. When moving
  the `base`, this field would be below `base` unless updated.
why:
  Given a sample ref `hash` the function searched for the unique chain
  containing the block header referenced by `hash`.

  Unfortunately, when searching down the ancestry lineage, the function
  did not necessarily stop an the end of the sub-chain. Rather it
  continued with the parent chain without noticing. So returning the
  wrong result.
why:
  The finalised block argument (that will eventually be the new base)
  might be moved further down the cursor arc if it is too close to the
  cursor head (typically smaller than 128 blocks.)

  So the finalised block selection is shifted down he cursor arc. And
  it might happen that the cursor arc itself is too small and one would
  end up at a parent cursor arc. This is rejected.
why:
  This leads to an inconsistent set of cursor arcs which are supposed to
  be mutually disjunct.
@mjfh mjfh requested a review from jangko December 1, 2024 12:52
@mjfh mjfh merged commit dd888de into master Dec 2, 2024
10 checks passed
@mjfh mjfh deleted the FC-module-various-base-tree-admin-updates branch December 2, 2024 08:25
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.

1 participant