Fix: serverinfo 'available' wasn't set for BTC

This commit is contained in:
nicolas.dorier
2021-12-14 00:05:41 +09:00
parent 19af02e71b
commit 9a70b4487c
2 changed files with 7 additions and 1 deletions

View File

@@ -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
});
}

View File

@@ -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
}
}
}