btcpayserver/BTCPayServer/Services/NBXSyncSummaryProvider.cs

23 lines
588 B
C#
Raw Normal View History

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