Repository navigation
Description
Why now
Protocol 30 doesn't have a Testnet or Mainnet date yet, but its XDR is already landing upstream, and the peers are working on it:
- CAP-84, muxed contract addresses (CAP, Accepted). New
SC_ADDRESS_TYPE_MUXED_CONTRACT = 5arm onSCAddressplus a newW...strkey for it, proposed in stellar-protocol#2020. stellar-core already merged it into its next-protocol build (stellar-core#5472, 2026-09-29). - CAP-88, millisecond close times (CAP, Accepted 2026-09-30). Two new
StellarValuearms carryingcloseTimeMs. - CAP-87, ML-DSA verification host functions (CAP, Final Comment Period). Nine new
ContractCostTypevalues, nothing else on our side.
CAP-88 is the one that bites. Its own impact section says decoding fails on an unknown union discriminant, so from the first ledger after the upgrade anyone decoding ledger headers or close meta with our XDR classes (for example the headerXdr/metadataXdr that getLatestLedger and getLedgers return) gets an exception until we regenerate. Our RPC calls themselves keep working, since we hand those fields back as base64 strings. CAP-84 is wider, because SCAddress shows up in contract values, auth entries and events, and our ScAddress model and strkey code need to learn the new arm.
The XDR is still moving: the CAP-88 typedef was renamed from TimePointMilliseconds to TimePointMs on 2026-10-02 (stellar-xdr#319). So generating against main today is fine for a branch, but the release should be cut from a tagged stellar-xdr v30.
Peers: JS #1697 (CAP-88), Go #6015 (CAP-84) and others are already open as drafts.
The bit we keep getting wrong
Protocol 27 and 28 code was ready well before Mainnet, but both only reached nuget.org with 16.0.0 on 2026-10-03, 87 and 17 days after they went live, because they rode a major release. This time protocol support should go out in a 16.x minor, before the Mainnet vote. JS now has this written down as a rule (RELEASE_POLICY.md); our version of it is in draft 25.
It would also help to stop finding out about XDR changes by reading release notes. A small scheduled workflow that diffs stellar-xdr's latest tag (and main) against the commit our generated code is pinned to, and opens an issue when they drift, would have flagged CAP-88 back in August.
What's in scope
- Regenerate XDR from the Protocol 30
stellar-xdrtag (pre-release branch frommainuntil the tag exists). ScAddresssupport for the muxed contract arm, plusW...encode/decode inStrKeywith the test vectors from stellar-protocol#2020 once it's merged.- Typed access to
closeTimeMswhere we already expose ledger close time from decoded XDR. - Re-stamp the Horizon and RPC matrices against the matching releases.
- Integration tests on Testnet once it upgrades.
- The scheduled upstream-XDR drift check described above.
Done when
- A 16.x release with Protocol 30 support is on NuGet before the Mainnet vote (or, if no vote is called this quarter, a pre-release built from the gated XDR).
- Decoding a post-upgrade
LedgerHeaderandLedgerCloseMetafrom Testnet works, with a test. - The drift check runs on a schedule and has opened at least one real or simulated issue.
Activity