From bb46294a6d5a74cbce38748076d1330acb3a8fc8 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sat, 6 Jan 2018 01:24:04 +0900 Subject: [PATCH] Fix progress bar on synching --- BTCPayServer/BTCPayServer.csproj | 2 +- BTCPayServer/Views/Shared/_Layout.cshtml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 251ee19a3..d7bd5aabe 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -2,7 +2,7 @@ Exe netcoreapp2.0 - 1.0.0.51 + 1.0.0.52 diff --git a/BTCPayServer/Views/Shared/_Layout.cshtml b/BTCPayServer/Views/Shared/_Layout.cshtml index 4965d204e..a9a5c7971 100644 --- a/BTCPayServer/Views/Shared/_Layout.cshtml +++ b/BTCPayServer/Views/Shared/_Layout.cshtml @@ -7,6 +7,7 @@ @{ var waiterState = waiter.Instance.State; var lastStatus = waiter.Instance.LastStatus; + var verificationProgress = waiter.Instance.LastStatus?.BitcoinStatus != null ? waiter.Instance.LastStatus.BitcoinStatus.VerificationProgress * 100 : 0.0; } @@ -126,9 +127,9 @@

Bitcoin Core is synching (Chain height: @lastStatus.BitcoinStatus.Headers, Block height: @lastStatus.BitcoinStatus.Blocks)

BTCPay Server will not work correctly until it is over.

-
- @((int)lastStatus.BitcoinStatus.VerificationProgress)% +
+ @((int)verificationProgress)%