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-4560: Changes in dag reconstruction to include parent round #514

Merged
merged 32 commits into from
Jan 17, 2025
Merged

Conversation

Marcin-Radecki
Copy link
Contributor

@Marcin-Radecki Marcin-Radecki commented Jan 2, 2025

This PR is a follow up after 71f0314, that introduced notion of parent round in the Extender.

Here we modify ControlHash accordingly. Previously, it was using NodeSubset which was just a Vec<bool> so a true/false whether given node index created a parent unit. Since we need now also the parent round, all code that reconstructs unit now have notion of a parent round.

NodeSubset is not removed as it is still used in the codebase.

This change is actually a no-op to the algo - you can see in the PR removed code round - 1 to just parent round from unit store, however in practice it is still round - 1 as the changes to Creator are not done yet. This will be done in the next PR.

Copy link

github-actions bot commented Jan 2, 2025

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 4560 A0-4560: Changes in dag reconstruction to include parent round Jan 3, 2025
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 comments, but they are exclusively nitpicks, otherwise looks great. <3

consensus/src/units/control_hash.rs Outdated Show resolved Hide resolved
consensus/src/units/control_hash.rs Outdated Show resolved Hide resolved
consensus/src/units/control_hash.rs Outdated Show resolved Hide resolved
consensus/src/units/control_hash.rs Outdated Show resolved Hide resolved
consensus/src/units/control_hash.rs Outdated Show resolved Hide resolved
consensus/src/units/control_hash.rs Outdated Show resolved Hide resolved
consensus/src/units/validator.rs Outdated Show resolved Hide resolved
consensus/src/units/validator.rs Outdated Show resolved Hide resolved
consensus/src/units/validator.rs Outdated Show resolved Hide resolved
consensus/src/units/control_hash.rs Outdated Show resolved Hide resolved
@timorleph timorleph added this pull request to the merge queue Jan 17, 2025
Merged via the queue into main with commit 1a35839 Jan 17, 2025
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