mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
Make sure dashboard is initialized from the beginning
This commit is contained in:
parent
2e630ac5d8
commit
65afc9f7b2
1 changed files with 3 additions and 3 deletions
|
@ -38,14 +38,13 @@ namespace BTCPayServer.HostedServices
|
|||
|
||||
public bool IsFullySynched()
|
||||
{
|
||||
return _Summaries.All(s => s.Value.Status != null && s.Value.Status.IsFullySynched);
|
||||
return _Summaries.All(s => s.Value.Status?.IsFullySynched is true);
|
||||
}
|
||||
|
||||
public bool IsFullySynched(string cryptoCode, out NBXplorerSummary summary)
|
||||
{
|
||||
return _Summaries.TryGetValue(cryptoCode.ToUpperInvariant(), out summary) &&
|
||||
summary.Status != null &&
|
||||
summary.Status.IsFullySynched;
|
||||
summary.Status?.IsFullySynched is true;
|
||||
}
|
||||
public NBXplorerSummary Get(string cryptoCode)
|
||||
{
|
||||
|
@ -88,6 +87,7 @@ namespace BTCPayServer.HostedServices
|
|||
_Client = client;
|
||||
_Aggregator = aggregator;
|
||||
_Dashboard = dashboard;
|
||||
_Dashboard.Publish(_Network, State, null, null);
|
||||
}
|
||||
|
||||
NBXplorerDashboard _Dashboard;
|
||||
|
|
Loading…
Add table
Reference in a new issue