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

Redo Effects v2 protocol change #14085

Merged
merged 4 commits into from
Oct 10, 2023
Merged

Redo Effects v2 protocol change #14085

merged 4 commits into from
Oct 10, 2023

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Oct 4, 2023

Description

This PR adds a new feature flag in the protocol config to enable effects v2 (devnet only at the moment).
When effects v2 is enabled, the system will start emitting effects v2 type.
This is done inside TemporaryStore, where depending on the feature flag, we call different constructors of TransactionEffects.
The previous attempt did not properly gate this change under the feature flag, which is fixed by this PR (see the second commit in this PR).
In order to be compatible with effects v1 (under old protocol), we need to reconstruct all the different v1 fields.
These code can be cleaned up once we cut a new sui-execution version.

Test Plan

CI


If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.

Type of Change (Check all that apply)

  • protocol change
  • user-visible impact
  • breaking change for a client SDKs
  • breaking change for FNs (FN binary must upgrade)
  • breaking change for validators or node operators (must upgrade binaries)
  • breaking change for on-chain data layout
  • necessitate either a data wipe or data migration

Release notes

@lxfind lxfind requested review from tzakian and tnowacki October 4, 2023 03:53
@vercel
Copy link

vercel bot commented Oct 4, 2023

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

Name Status Preview Comments Updated (UTC)
mysten-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 4:17pm
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 4:17pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
explorer ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 4:17pm
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 4:17pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 4:17pm

@lxfind lxfind force-pushed the effects-v2-protocol-change branch from d9b9e94 to d40cbc2 Compare October 10, 2023 16:17
@vercel vercel bot temporarily deployed to Preview – mysten-ui October 10, 2023 16:17 Inactive
@lxfind lxfind enabled auto-merge (squash) October 10, 2023 16:29
@lxfind lxfind merged commit 6ade193 into main Oct 10, 2023
31 checks passed
@lxfind lxfind deleted the effects-v2-protocol-change branch October 10, 2023 16:35
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.

2 participants