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

A0-4563: Introduce notion of non-direct parents in Extender #506

Merged
merged 10 commits into from
Dec 23, 2024

Conversation

Marcin-Radecki
Copy link
Contributor

This PR extends UnitWithParents trait so that it will be possible to distinguish direct and non-direct parents of a unit. Those changes are required for later changes in DAG reconstruction and validation. This change must be a no-op from the algorithm perspective. I am not going to uncomment UT added recently just yet,

Copy link

Please make sure the following happened

  • Appropriate tests created
  • Infrastructure updated accordingly
  • Updated existing documentation
  • New documentation created
  • Version bumped if breaking changes

@Marcin-Radecki Marcin-Radecki changed the title A0 4563 next pr A0-4563: Introduce notion of non-direct parents in extender Dec 12, 2024
@Marcin-Radecki Marcin-Radecki changed the title A0-4563: Introduce notion of non-direct parents in extender A0-4563: Introduce notion of non-direct parents in Extender Dec 12, 2024
Copy link
Contributor

@timorleph timorleph left a comment

Choose a reason for hiding this comment

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

Lots of tiny nitpicks, but in general code looks great.

consensus/src/dag/reconstruction/mod.rs Outdated Show resolved Hide resolved
consensus/src/dag/reconstruction/mod.rs Outdated Show resolved Hide resolved
consensus/src/dag/reconstruction/mod.rs Show resolved Hide resolved
consensus/src/extension/election.rs Outdated Show resolved Hide resolved
consensus/src/extension/election.rs Outdated Show resolved Hide resolved
consensus/src/testing/dag.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@DamianStraszak DamianStraszak left a comment

Choose a reason for hiding this comment

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

Look solid.

consensus/src/extension/election.rs Outdated Show resolved Hide resolved
@Marcin-Radecki Marcin-Radecki added this pull request to the merge queue Dec 23, 2024
Merged via the queue into main with commit 71f0314 Dec 23, 2024
11 checks passed
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