Skip to content

sui-forking: startup and wire sui-data-store apis#25930

Draft
stefan-mysten wants to merge 1 commit intocodex/forking-pr1from
codex/forking-pr2
Draft

sui-forking: startup and wire sui-data-store apis#25930
stefan-mysten wants to merge 1 commit intocodex/forking-pr1from
codex/forking-pr2

Conversation

@stefan-mysten
Copy link
Contributor

@stefan-mysten stefan-mysten commented Mar 20, 2026

Description

  • Builds an object cache chain: in-memory -> filesystem -> GraphQL.
  • Fetches the startup checkpoint payload from gRPC in sui-forking, not through generic sui-data-store checkpoint APIs.
  • Derives the post-checkpoint SuiSystemState, including the end-of-epoch case.
  • Prefetches explicit startup object IDs into the object chain.
  • Starts the server and exposes health/status plus gRPC get_object.
  • Stores startup checkpoint summary/contents and executed tx/effects/events in ForkingStore memory so the minimal runtime works.
  • Adds a smoke test in setup.rs that boots from startup state, executes one impersonated transaction, creates a checkpoint, and verifies the updated state is readable.

Start the server with

sui-forking start --network testnet

Test plan

Adds new tests

cargo nextest run -p sui-forking
cargo nextest run -p sui-forking -- impersonated_execution_smoke_test_updates_in_memory_state

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:
  • Indexing Framework:

@vercel
Copy link

vercel bot commented Mar 20, 2026

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

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
multisig-toolkit Ignored Ignored Mar 20, 2026 7:24pm
sui-kiosk Ignored Ignored Mar 20, 2026 7:24pm

Request Review

@stefan-mysten stefan-mysten temporarily deployed to sui-typescript-aws-kms-test-env March 20, 2026 19:24 — with GitHub Actions Inactive
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.

1 participant