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

Direct execution #1656

Merged
merged 10 commits into from
Apr 29, 2022
Merged

Direct execution #1656

merged 10 commits into from
Apr 29, 2022

Conversation

asonnino
Copy link
Contributor

  • Sui authorities immediatly attempt to execute consensus output without waiting for the client to tell them
  • Update narwhal dependency

@asonnino asonnino enabled auto-merge (squash) April 28, 2022 19:03
@asonnino asonnino linked an issue Apr 28, 2022 that may be closed by this pull request
Copy link
Collaborator

@gdanezis gdanezis left a 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.
Copy link
Collaborator

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(),
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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

@asonnino asonnino merged commit b92eef1 into main Apr 29, 2022
@asonnino asonnino deleted the fix-1624 branch April 29, 2022 09:17
longbowlu pushed a commit that referenced this pull request May 12, 2022
Execute all consensus txs
punwai pushed a commit that referenced this pull request Jul 27, 2022
Execute all consensus txs
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.

Not display all consensus::tusk logs to the screen when running sui
6 participants