Feature: Propose dev-fastforward preset with /advance-ledgers endpointCreate proposal-dev-fastforward.md#934
Open
LiamVanderdeg wants to merge 3 commits into
Open
Feature: Propose dev-fastforward preset with /advance-ledgers endpointCreate proposal-dev-fastforward.md#934LiamVanderdeg wants to merge 3 commits into
LiamVanderdeg wants to merge 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a written proposal describing a new dev-fastforward preset and an /advance-ledgers endpoint to speed up local Soroban testing by fast-forwarding ledgers.
Changes:
- Introduces a proposal doc for a
dev-fastforwardpreset. - Documents rationale and constraints from issue #932.
- Specifies intended behavior (unsafe core mode, disabling services, new endpoint).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Author
|
Ecosystem contribution: Proposed dev-fastforward preset per issue #932 |
Added implementation notes and usage details for fast-forwarding ledgers in local development.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Proposal for a
dev-fastforwardpreset implementing the endpoint requested by @teddav in #932:"An endpoint to automatically advance by N ledgers" for local Soroban testing.
Problem
As described in #932:
--localmode starts at ledger 1, unlike testnet/mainnet where ledgers are in the millions.ENABLE_CORE_MANUAL_CLOSE=true+/manualcloseis slow when horizon/rpc are enabled.STELLAR_CORE_FLAGS,ENABLE_FRIENDBOTare inconsistently supported across image versions.Proposed Solution
Add
--preset dev-fastforwardthat:--core-config-unsafe-modeto disable archive publishing/validation/advance-ledgers?count=Nendpoint as requested by @teddavThis allows reaching ledger 1M+ in minutes, matching real network conditions for time-based contract testing.
Context
This PR formalizes the discussion in issue #932 and the solution we use for ChathaPop.app testing,
which cuts local test time ~90%.
Reference: #932