Skip to content

Conversation

@ifropc
Copy link
Contributor

@ifropc ifropc commented Mar 25, 2025

What

Adds network health command

> cargo run network health --network=local
❌ Unhealthy
❌ failed to fetch network health: Networking or low-level protocol error: HTTP error: error trying to connect: tcp connect error: Connection refused (os error 111)
> cargo run network health              
✅ Healthy
ℹ️ Latest ledger: 104038
> cargo run network health --output json-formatted
{
  "status": "healthy",
  "latestLedger": 104044,
  "oldestLedger": 256,
  "ledgerRetentionWindow": 120960
}

Why

Closing #1913

Known limitations

Depends on stellar/rs-stellar-rpc-client#24

@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in DevX Mar 25, 2025
@ifropc ifropc linked an issue Mar 25, 2025 that may be closed by this pull request
@ifropc ifropc requested a review from a team March 25, 2025 03:48
Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

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

Couple minor things, otherwise lgtm.

@ifropc ifropc enabled auto-merge (squash) March 25, 2025 18:04
@ifropc ifropc merged commit 325c450 into main Mar 25, 2025
32 checks passed
@ifropc ifropc deleted the get-network branch March 25, 2025 18:34
@github-project-automation github-project-automation bot moved this from Backlog (Not Ready) to Done in DevX Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

New command stellar network health

3 participants