Support wider server sync info in greenfield server info (#2511)

fixes #2498
This commit is contained in:
Andrew Camilleri
2021-05-19 06:07:28 +02:00
committed by GitHub
parent ed7031981b
commit 3b375929c1
7 changed files with 106 additions and 44 deletions

View File

@@ -27,12 +27,17 @@ namespace BTCPayServer.Client.Models
/// <summary>
/// detailed sync information per chain
/// </summary>
public IEnumerable<ServerInfoSyncStatusData> SyncStatus { get; set; }
public IEnumerable<SyncStatus> SyncStatus { get; set; }
}
public class ServerInfoSyncStatusData
public class SyncStatus
{
public string CryptoCode { get; set; }
public virtual bool Available { get; set; }
}
public class ServerInfoSyncStatusData: SyncStatus
{
public int ChainHeight { get; set; }
public int? SyncHeight { get; set; }
public ServerInfoNodeData NodeInformation { get; set; }