-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Direct execution #1656
Direct execution #1656
Conversation
asonnino
commented
Apr 28, 2022
- Sui authorities immediatly attempt to execute consensus output without waiting for the client to tell them
- Update narwhal dependency
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.
See advice on preventing memory exhaustion.
} | ||
|
||
/// Hash serialized consensus transactions. We do not need specific cryptographic properties except | ||
/// only collision resistance. |
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.
You only need collision resistance for DoS protection, not correctness. A Hashtable disambiguates items with same hash through Eq
state, | ||
rx_consensus_input, | ||
rx_consensus_output, | ||
pending: HashMap::new(), |
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.
Advice: has a max size for this table -- it can be large, and after that return an error if there are too many pending things.
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.
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.
Will do in a separate PR