diff --git a/BTCPayServer/Services/NBXSyncSummaryProvider.cs b/BTCPayServer/Services/NBXSyncSummaryProvider.cs index 3925d2ebb..c54246f46 100644 --- a/BTCPayServer/Services/NBXSyncSummaryProvider.cs +++ b/BTCPayServer/Services/NBXSyncSummaryProvider.cs @@ -36,7 +36,8 @@ namespace BTCPayServer.Services VerificationProgress = s.VerificationProgress } : null, ChainHeight = summary.Status.ChainHeight, - SyncHeight = summary.Status.SyncHeight + SyncHeight = summary.Status.SyncHeight, + Available = summary.Status.IsFullySynched }); } diff --git a/BTCPayServer/wwwroot/swagger/v1/swagger.template.serverinfo.json b/BTCPayServer/wwwroot/swagger/v1/swagger.template.serverinfo.json index c216695c1..f7fb6159a 100644 --- a/BTCPayServer/wwwroot/swagger/v1/swagger.template.serverinfo.json +++ b/BTCPayServer/wwwroot/swagger/v1/swagger.template.serverinfo.json @@ -103,6 +103,11 @@ "format": "integer", "nullable": true, "description": "The height of the latest indexed block of the internal indexer" + }, + "available": { + "type": "boolean", + "description": "True if the full node and the indexer are fully synchronized", + "nullable": false } } }