-
Notifications
You must be signed in to change notification settings - Fork 28
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-4006: Unit reconstruction refactor #418
A0-4006: Unit reconstruction refactor #418
Conversation
Please make sure the following happened
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Added a small change, since DAG reconstruction does not actually need unit copies, and it likely won't be the component finally holding them; we will see in the next PRs though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice and clean, I've got nothing to add tbh.
Reconstructing the explicit structure of the Dag from the, somewhat compressed, is now handled by a component named "reconstruction" rather than the cryptic "terminal". Internally it also consists of two separate pieces of logic – reconstructing the explicit hashes of parents and ensuring the order of units being added to the Dag.
This leaves a couple awkward points, which will hopefully be ironed out by further refactors around runway.
A big part of the motivation for this refactor is making the upcoming change to differently defined parents simpler to implement.