Skip to content

MCP-02: add proposer/relay schedules and cache APIs#25

Open
aeyakovenko wants to merge 306 commits intoanza-xyz:masterfrom
aeyakovenko:issue-5-mcp-schedules
Open

MCP-02: add proposer/relay schedules and cache APIs#25
aeyakovenko wants to merge 306 commits intoanza-xyz:masterfrom
aeyakovenko:issue-5-mcp-schedules

Conversation

@aeyakovenko
Copy link
Copy Markdown

Summary

  • add domain-separated stake-weighted schedule generation for MCP roles (mcp:proposer, mcp:relay)
  • add mcp_proposer_schedule() and mcp_relay_schedule() in leader_schedule_utils
  • extend LeaderScheduleCache with proposer/relay schedule caches and slot/index accessors:
    • proposers_at_slot()
    • relays_at_slot()
    • proposer_indices_at_slot()
    • relay_indices_at_slot()
  • keep existing leader schedule behavior unchanged

Validation

  • cargo test -p solana-ledger --lib test_domain_separated_schedule_seed -- --nocapture
  • cargo test -p solana-ledger --lib test_mcp_schedule_is_deterministic -- --nocapture
  • cargo test -p solana-ledger --lib test_mcp_schedule_accessors_are_cached_and_sized -- --nocapture
  • cargo test -p solana-ledger --lib test_mcp_duplicate_identity_indices_return_all_positions -- --nocapture

Fixes #5

@aeyakovenko aeyakovenko force-pushed the issue-5-mcp-schedules branch from a772cdc to 7f936b8 Compare February 8, 2026 15:24
# Conflicts:
#	ledger/src/shred/mcp_shred.rs
#	plan.md
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.

MCP-02 Setup: Proposer, Relay and Leader schedule

1 participant