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

This commit is contained in:
nicolas.dorier 2021-12-14 00:05:41 +09:00
parent e5113f8b74
commit ee1a034c0a
No known key found for this signature in database
GPG key ID: 6618763EF09186FE
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
}
}
}