Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/proposal-dev-fastforward.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Summary
Proposal for a `dev-fastforward` preset 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:
1. Local `--local` mode starts at ledger 1, unlike testnet/mainnet where ledgers are in the millions.
2. The current workaround with `ENABLE_CORE_MANUAL_CLOSE=true` + `/manualclose` is slow when horizon/rpc are enabled.
3. Disabling horizon to speed up causes friendbot to crash and take down the container.
4. Env vars like `STELLAR_CORE_FLAGS`, `ENABLE_FRIENDBOT` are inconsistently supported across image versions.

## Proposed Solution
Add `--preset dev-fastforward` that:
- Enables `--core-config-unsafe-mode` to disable archive publishing/validation
- Disables horizon/rpc/friendbot by default during fast-forward
- Exposes `/advance-ledgers?count=N` endpoint as requested by @teddav

This allows reaching ledger 1M+ in minutes, matching real network conditions for time-based contract testing.
Comment thread
LiamVanderdeg marked this conversation as resolved.

## Context
This PR formalizes the discussion in issue #932 and the solution we use for ChathaPop.app testing,
Comment thread
LiamVanderdeg marked this conversation as resolved.
Outdated
which cuts local test time ~90%.

Reference: #932
Loading