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

make SubmitToConsensus trait non-async #21016

Merged
merged 4 commits into from
Feb 3, 2025
Merged

make SubmitToConsensus trait non-async #21016

merged 4 commits into from
Feb 3, 2025

Conversation

aschran
Copy link
Contributor

@aschran aschran commented Jan 30, 2025


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):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

@aschran aschran requested a review from mystenmark January 30, 2025 18:03
@aschran aschran requested a review from a team as a code owner January 30, 2025 18:03
@aschran aschran temporarily deployed to sui-typescript-aws-kms-test-env January 30, 2025 18:03 — with GitHub Actions Inactive
Copy link

vercel bot commented Jan 30, 2025

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 Feb 3, 2025 4:54pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Feb 3, 2025 4:54pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Feb 3, 2025 4:54pm

let transaction = &transactions[0];
self.tx_sender
.try_send(transaction.clone())
.expect("MockConsensusClient channel should not overflow");
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this safe? couldn't we fill up the channel if we submitted too much too quickly?

Copy link
Contributor Author

@aschran aschran Jan 30, 2025

Choose a reason for hiding this comment

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

Yes, but it's a mock only used in tests that don't do that

@aschran aschran requested a review from mystenmark January 30, 2025 21:41
@aschran aschran temporarily deployed to sui-typescript-aws-kms-test-env February 3, 2025 16:52 — with GitHub Actions Inactive
@aschran aschran merged commit df08cb2 into main Feb 3, 2025
47 checks passed
@aschran aschran deleted the aschran/s2c-simplify branch February 3, 2025 17:25
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.

4 participants