Skip to content

Bump to p27 - #5305

Merged
sisuresh merged 10 commits into
stellar:masterfrom
sisuresh:p27-bump
Jun 2, 2026
Merged

sisuresh merged 10 commits into
stellar:masterfrom
sisuresh:p27-bump

Conversation

@sisuresh

@sisuresh sisuresh commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Graduates protocol 27 from WIP to a production-supported protocol.

  • Bump the p27 soroban host (src/rust/soroban/p27) to 414c3fbd (soroban-env / stellar-xdr 27.0.0) and src/protocol-curr/xdr to 68fa1ac5.
  • Set Config::CURRENT_LEDGER_PROTOCOL_VERSION to 27.
  • Move p27 from the WIP slot into ALL_SOROBAN_PROTOCOLS and un-gate it from the next feature (soroban_proto_all.rs, soroban_module_cache.rs) so it builds as the current protocol without --enable-next-protocol-version-unsafe-for-production.
  • Point stellar-quorum-analyzer at the matching stellar-xdr and refresh the p27 dep-tree snapshot.

Copilot AI review requested due to automatic review settings June 2, 2026 00:31
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR graduates protocol 27 (“p27”) from WIP to production-supported by bumping the Soroban host/XDR dependencies, making p27 the default/current Soroban protocol, and updating Stellar Core’s CURRENT_LEDGER_PROTOCOL_VERSION to 27.

Changes:

  • Promote Soroban p27 to be built/enabled by default (ungated from the Rust next feature) and included in the Soroban module cache and host dispatch tables.
  • Bump core protocol constant to 27 and adjust the XDR identity check behavior at startup.
  • Update Rust dependency pins/snapshots (dep-tree for p27, stellar-quorum-analyzer rev, and Cargo.lock/stellar-xdr resolution).

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/rust/src/soroban_proto_all.rs Makes p27 the “current” Soroban protocol and includes it unconditionally in dispatch tables.
src/rust/src/soroban_module_cache.rs Adds an always-present p27 module cache and routes protocol 27 to it.
src/rust/src/dep-trees/p27-expect.txt Updates the expected dependency tree snapshot for the bumped p27 host.
src/rust/Cargo.toml Advances the stellar-quorum-analyzer git revision to match updated XDR.
src/Makefile.am Moves p27 into ALL_SOROBAN_PROTOCOLS and clears the WIP Soroban protocol slot.
src/main/main.cpp Re-enables XDR identity checking for normal builds; disables it for “next protocol” builds.
src/main/Config.cpp Sets Config::CURRENT_LEDGER_PROTOCOL_VERSION to 27 (and still +1 under ENABLE_NEXT).
Cargo.lock Updates locked dependencies to stellar-xdr 27.0.0 and refreshes related entries.
Comments suppressed due to low confidence (1)

src/Makefile.am:215

  • With WIP_SOROBAN_PROTOCOL now empty, --enable-next-protocol-version-unsafe-for-production still enables CARGO_FEATURE_NEXT (and therefore SOROBAN_FEATURE_NEXT) while also bumping Config::CURRENT_LEDGER_PROTOCOL_VERSION to 28. The Rust Soroban host submodules/protocol list only goes through p27, so startup checks like check_sensible_soroban_config_for_protocol / get_soroban_version_info will fail in next-protocol builds (no host supports core_max_proto=28). Consider either defining a p28 Soroban protocol (even if it temporarily aliases p27) and setting WIP_SOROBAN_PROTOCOL=p28, or changing next-protocol build wiring so core_max_proto doesn’t advance past the last Soroban host when no WIP Soroban protocol is present.
ALL_SOROBAN_PROTOCOLS=p21 p22 p23 p24 p25 p26 p27
WIP_SOROBAN_PROTOCOL=

CARGO_XDR_FEATURE_FLAGS =

if ENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION
ALL_SOROBAN_PROTOCOLS+=$(WIP_SOROBAN_PROTOCOL)
# This means "only pass --features=next if there's no WIP submodule"
SOROBAN_FEATURE_NEXT=$(if $(WIP_SOROBAN_PROTOCOL),,$(CARGO_FEATURE_NEXT))

Comment thread src/rust/src/soroban_proto_all.rs Resolved
@sisuresh
sisuresh enabled auto-merge June 2, 2026 04:59
Comment thread src/rust/src/soroban_proto_all.rs Resolved
@sisuresh
sisuresh added this pull request to the merge queue Jun 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 2, 2026
@sisuresh
sisuresh added this pull request to the merge queue Jun 2, 2026
Merged via the queue into stellar:master with commit a69eb3d Jun 2, 2026
54 checks passed
@sisuresh
sisuresh deleted the p27-bump branch June 2, 2026 18:37
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.

3 participants