Skip to content

Conversation

@mystenmark
Copy link
Contributor

Description

Cherry pick of commit handler rewrite

Test plan

Has already been extensively tested in simtest + antithesis. Will be deploying to mysten validators for further testing prior to release.

- I highly recommend checking out the branch, opening your IDE, and
starting at `handle_consensus_commit_v2` and stepping through the whole
path line by line.
- When you see a comment that looks like `//
DONE(commit-handler-rewrite): <message>` you can search for `<message>`
and find a corresponding `TODO` line in the original handler. You can
then check that the new code is doing the same thing as the old code.
- Anything ending in `_v2` is usually just the original version, changed
to handle `VerifiedExecutableTransaction` instead of
`VerifiedSequencedConsensusTransaction`

- We currently only run the new handler on the first 2 validators in the
committee. This makes it easy to test for forks. Before merging, I will
switch to using a protocol flag so that all validators switch
atomically. (I claim that the new code is compatible, but there's no
harm in being safe)
- In order to have both code paths present at the same time, there is a
fair amount of duplicated code in `_v2` methods. The original versions
of this code will be removed after this has been rolled out.

- [x] simtest, with only some validators running new handler. This found
a lot of bugs
- [ ] antithesis, with and without split-version / upgrade tests
- [ ] I will attempt to replay mainnet/testnet commits to further verify
compatibility
@mystenmark mystenmark requested a review from a team as a code owner September 25, 2025 18:24
@mystenmark mystenmark requested a review from ebmifa September 25, 2025 18:24
@mystenmark mystenmark temporarily deployed to sui-typescript-aws-kms-test-env September 25, 2025 18:24 — with GitHub Actions Inactive
@vercel
Copy link

vercel bot commented Sep 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sui-docs Ready Ready Preview Comment Oct 1, 2025 3:03pm
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
multisig-toolkit Ignored Ignored Preview Oct 1, 2025 3:03pm
sui-kiosk Ignored Ignored Preview Oct 1, 2025 3:03pm

- Fix bug in deferred transaction loading
- Fix upgrade tests on antithesis by requiring the epoch flag
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