Skip to content

refactor(ready): name the Stellar ledger close-time constant - #140

Open
ZacLou wants to merge 1 commit into
ourdao:mainfrom
ZacLou:issue-139-ledger-close-time-constant
Open

refactor(ready): name the Stellar ledger close-time constant#140
ZacLou wants to merge 1 commit into
ourdao:mainfrom
ZacLou:issue-139-ledger-close-time-constant

Conversation

@ZacLou

@ZacLou ZacLou commented Aug 31, 2026

Copy link
Copy Markdown

Closes #139

Replaces the bare 5 literal in the /ready readiness probe with a named constant:

  • Adds STELLAR_LEDGER_CLOSE_TIME_SECONDS in src/api/server.ts with a comment explaining that 5 seconds is Stellar's nominal ledger close time.
  • Uses the constant when computing estimatedLagSeconds so the value has a single source of truth and is easier to tune if the network cadence changes.

No behavioral changes.

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.

/ready hard-codes a 5-second ledger close time with no constant or comment

1 participant