-
Notifications
You must be signed in to change notification settings - Fork 375
feat: no state hashing during catch-up (consensus) #8232
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
base: mraszyk/no-state-hashing-during-catchup
Are you sure you want to change the base?
feat: no state hashing during catch-up (consensus) #8232
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
26af951 to
4d31366
Compare
| .list_state_heights_to_certify() | ||
| .into_iter() | ||
| .filter(|height| !deliver_state_certification(*height)) |
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.
Is it guaranteed that the view of both list_... functions is consistent? Or could it happen that the same height appears in both lists?
| @@ -148,29 +174,12 @@ impl<T: CertificationPool> PoolMutationsProducer<T> for CertifierImpl { | |||
| .list_state_hashes_to_certify() | |||
| .into_iter() | |||
| .filter_map(|(height, hash, witness)| { | |||
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.
Maybe this should also be filter instead?
| .filter_map(|(height, hash, witness)| { | |
| .filter(|(height, hash, witness)| { |
This PR makes consensus (certifier) poll the state manager’s method
list_state_heights_to_certifyto learn which heights are requested to be (optimistically) certified in advance (before DSM catches up to compute their corresponding states). The consensus certifier attempts to deliver a certification for every such height (using the existing methodStateManager::deliver_state_certification) if available and aggregates/validates certifications for those heights.