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

Solana MCMS supported tx capacity [NONEVM-1069] #411

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jadepark-dev
Copy link
Contributor

@jadepark-dev jadepark-dev commented Jan 2, 2025

This PR analyzes transaction size limitations for the Solana MCMS programs

Primary Changes

  • Added transaction size analysis for MCMS execution scenarios using two approaches:

    • Using memo program to test raw instruction data capacity
    • Using token transfers with timelock to test multi-instruction batching capacity and account metadata limits
  • Added comprehensive cases covering:

    • mcm::execute: spl-memo::newMemo memo sizes from 32 to 759 bytes(w/o overheads) for instruction data limits
    • mcm::execute{timelock::schedule_batch}/timelock::execute_batch: Token transfer batches up to 16 transfers(1094 bytes w/o overheads) for throughput testing
  • Added test summary logging for size analysis results

Others

  • Enhanced RPC error helper to support transaction modifiers
  • Added parallel execution to existing test cases for better test performance

@jadepark-dev jadepark-dev self-assigned this Jan 2, 2025
@jadepark-dev jadepark-dev marked this pull request as ready for review January 3, 2025 10:32
@jadepark-dev jadepark-dev requested a review from a team as a code owner January 3, 2025 10:32
Copy link

github-actions bot commented Jan 3, 2025

Metric solana/mcms-tx-size main
Coverage 76.5% 76.5%

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