2020-11-17 13:46:23 +01:00
|
|
|
using BTCPayServer.Abstractions.Contracts;
|
2020-07-28 22:48:51 +02:00
|
|
|
using BTCPayServer.HostedServices;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Services
|
|
|
|
{
|
|
|
|
public class NBXSyncSummaryProvider : ISyncSummaryProvider
|
|
|
|
{
|
|
|
|
private readonly NBXplorerDashboard _nbXplorerDashboard;
|
|
|
|
|
|
|
|
public NBXSyncSummaryProvider(NBXplorerDashboard nbXplorerDashboard)
|
|
|
|
{
|
|
|
|
_nbXplorerDashboard = nbXplorerDashboard;
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool AllAvailable()
|
|
|
|
{
|
|
|
|
return _nbXplorerDashboard.IsFullySynched();
|
|
|
|
}
|
|
|
|
|
2020-11-06 08:41:03 +01:00
|
|
|
public string Partial { get; } = "Bitcoin/NBXSyncSummary";
|
2020-07-28 22:48:51 +02:00
|
|
|
}
|
|
|
|
}
|