Skip to content

Enable soft bundle in devnet and testnet#18302

Merged
mystenmark merged 7 commits intoMystenLabs:mainfrom
shio-coder:enable_soft_bundle
Jun 26, 2024
Merged

Enable soft bundle in devnet and testnet#18302
mystenmark merged 7 commits intoMystenLabs:mainfrom
shio-coder:enable_soft_bundle

Conversation

@shio-coder
Copy link
Copy Markdown
Contributor

@shio-coder shio-coder commented Jun 18, 2024

Description

This is a follow up change after PR #17508 and #17868 , for SIP-19.

The change adds a unit test for soft bundle failure modes, as well as enable soft bundle feature flag in devnet and testnet.

Test plan

The feature is not exactly user-facing and do not break anything.


Release notes

  • Protocol: Enable soft bundle on Protocol Version 50 in Devnet and Testnet.
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

@shio-coder shio-coder requested a review from mystenmark as a code owner June 18, 2024 07:56
@vercel
Copy link
Copy Markdown

vercel bot commented Jun 18, 2024

@shio-coder is attempting to deploy a commit to the Mysten Labs Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel bot commented Jun 18, 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 Jun 26, 2024 5:03am

Copy link
Copy Markdown
Contributor

@mystenmark mystenmark left a comment

Choose a reason for hiding this comment

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

This all looks good. We need one additional test, which is to make sure that bad certs in soft bundles are rejected. The easiest way to do this is most likely to add another check here

.handle_certificate_v2(ct.clone(), Some(socket_addr))

which calls handle_soft_bundle_certificates_v3 in addition to handle_certificate_v2 and makes sure the error is the same. I think its okay to use a soft bundle of size one for this check.

@shio-coder
Copy link
Copy Markdown
Contributor Author

Thanks Mark! I have added forged cert tests for Soft Bundle.

It is a little bit different though because we have to make sure the tx has access to a shared object.
I have modified existing tests so that they run against two txs (one transfer, one move call w/ shared object).

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