From 77be31f32c7d5c1c0343a9073f9847d157cd91d0 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Wed, 8 May 2024 16:38:29 +0200 Subject: [PATCH] rpc: Update getHealth documentation --- static/openrpc.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/static/openrpc.json b/static/openrpc.json index 64f86389..f9509b65 100644 --- a/static/openrpc.json +++ b/static/openrpc.json @@ -353,6 +353,18 @@ "status": { "type": "string", "description": "\"healthy\"" + }, + "latestLedger": { + "type": "number", + "description": "Most recent known ledger sequence" + }, + "oldestLedger": { + "type": "number", + "description": "Oldest ledger sequence kept in history" + }, + "ledgerRetentionWindow": { + "type": "number", + "description": "Maximum retention window configured. When the window is full: ledgerRetentionWindow = latestLedger - oldestLedger" } } } @@ -365,7 +377,10 @@ "result": { "name": "getHealthResult", "value": { - "status": "healthy" + "status": "healthy", + "latestLedger": 51583040, + "oldestLedger": 51565760, + "ledgerRetentionWindow": 17280 } } }