-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
[fastpath] propose blocks with transaction votes #21564
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
41c4eab
to
6ff719d
Compare
6ff719d
to
b404fbb
Compare
/// Returns the list of blocks that are newly linked. | ||
/// The returned blocks are guaranteed to be above the GC round. | ||
/// NOTE: this function should only be called with GC enabled. | ||
pub(crate) fn recursive_hard_link(&mut self, root_block: BlockRef) -> Vec<BlockRef> { |
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.
can you add a unit test for this in dag state, unless you think its thoroughly tested elsewhere
/// A transaction is certified if a quorum of authorities voted to accept it. A block is certified | ||
/// if every transaction in the block is either certified or rejected. TransactionCertifier outputs | ||
/// blocks certified in the causal history own proposed blocks. | ||
/// A transaction is certified if a quorum of authorities in the causal history of a proposed block |
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.
Thanks for the very clear comment! 😄
}) | ||
.collect::<Vec<_>>(); | ||
let certified_blocks = certifier_state.add_voted_blocks(voted_blocks); | ||
self.send_certified_blocks(certified_blocks); |
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.
This could actually end up sending duplicated certified blocks after recovery, correct? Not an issue, probably just have to dedupe on the Sui side.
i.e. Block A1 containing just Tx1 is rejected and certifed via fastpath but not yet proposed so it will get sent to Sui but after the node goes down and recovers it will resend this certified block to Sui?
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.
Yes similar to consensus commits, sending previously executed transactions is possible and ok.
b404fbb
to
5700ac6
Compare
Description
Test plan
CI
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.