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

[Fastpath] Support transactions certified through consensus #19601

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

mwtian
Copy link
Member

@mwtian mwtian commented Sep 27, 2024

Description

The fields in the CertificateProof::Consensus variant is chosen to enhance debuggability (including the transaction's position in the DAG: round, authority index, transaction index), without unnecessary data (consensus block digest is excluded).

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.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Sep 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 30, 2024 9:50pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 9:50pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 9:50pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 9:50pm

@mwtian mwtian changed the title Add types for transactions certified through consensus Support transactions certified through consensus Sep 27, 2024
@mwtian mwtian changed the title Support transactions certified through consensus [Fastpath] Support transactions certified through consensus Sep 27, 2024
Copy link
Contributor

@akichidis akichidis left a comment

Choose a reason for hiding this comment

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

Changes look good to me. The debug data look fine at least for now 👍

pub type TransactionIndex = u16;

/// Consensus timestamp in ms.
pub type ConsensusTimestampMs = u64;
Copy link
Contributor

Choose a reason for hiding this comment

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

can we be consistent about whether or not we are prefixing consensus-related type aliases with Consensus?

that is to say, should it be removed here or added on the types above?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was trying to avoid confusion with CheckpointTimestamp or other timestamp types. But looking at how the Narwhal imported TimestampMs type is used without issue, I will leave this as TimestampMs for now.

@mwtian mwtian deleted the tmw/transaction-cert branch September 30, 2024 22:21
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.

3 participants