diff --git a/BTCPayServer.Tests/docker-compose.yml b/BTCPayServer.Tests/docker-compose.yml index 85c6b8d61..4b52e0002 100644 --- a/BTCPayServer.Tests/docker-compose.yml +++ b/BTCPayServer.Tests/docker-compose.yml @@ -42,7 +42,7 @@ services: # - eclair2 nbxplorer: - image: nicolasdorier/nbxplorer:1.0.0.32 + image: nicolasdorier/nbxplorer:1.0.0.34 ports: - "32838:32838" expose: diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index de366cf12..5ba3d6b58 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -2,7 +2,7 @@ Exe netcoreapp2.0 - 1.0.0.49 + 1.0.0.50 @@ -24,7 +24,7 @@ - + diff --git a/BTCPayServer/Controllers/CallbackController.cs b/BTCPayServer/Controllers/CallbackController.cs index 34dc87540..031361851 100644 --- a/BTCPayServer/Controllers/CallbackController.cs +++ b/BTCPayServer/Controllers/CallbackController.cs @@ -77,7 +77,7 @@ namespace BTCPayServer.Controllers public async Task NewBlock(string token) { await AssertToken(token); - _EventAggregator.Publish(new NewBlockEvent()); + _EventAggregator.Publish(new Events.NewBlockEvent()); } private async Task AssertToken(string token) diff --git a/BTCPayServer/NBXplorerWaiter.cs b/BTCPayServer/NBXplorerWaiter.cs index 6f518fde5..0279209fc 100644 --- a/BTCPayServer/NBXplorerWaiter.cs +++ b/BTCPayServer/NBXplorerWaiter.cs @@ -81,7 +81,7 @@ namespace BTCPayServer status = await GetStatusWithTimeout(); if (status != null) { - if (status.IsFullySynched()) + if (status.IsFullySynched) { State = NBXplorerState.Ready; } @@ -97,7 +97,7 @@ namespace BTCPayServer { State = NBXplorerState.NotConnected; } - else if (status.IsFullySynched()) + else if (status.IsFullySynched) { State = NBXplorerState.Ready; } @@ -108,7 +108,7 @@ namespace BTCPayServer { State = NBXplorerState.NotConnected; } - else if (!status.IsFullySynched()) + else if (!status.IsFullySynched) { State = NBXplorerState.Synching; } diff --git a/BTCPayServer/Services/Invoices/InvoiceWatcher.cs b/BTCPayServer/Services/Invoices/InvoiceWatcher.cs index d9f392fac..7672bf0e5 100644 --- a/BTCPayServer/Services/Invoices/InvoiceWatcher.cs +++ b/BTCPayServer/Services/Invoices/InvoiceWatcher.cs @@ -132,8 +132,8 @@ namespace BTCPayServer.Services.Invoices var utxos = changes.Confirmed.UTXOs.Concat(changes.Unconfirmed.UTXOs).ToArray(); List receivedCoins = new List(); foreach (var received in utxos) - if (invoice.AvailableAddressHashes.Contains(received.Output.ScriptPubKey.Hash.ToString())) - receivedCoins.Add(new Coin(received.Outpoint, received.Output)); + if (invoice.AvailableAddressHashes.Contains(received.ScriptPubKey.Hash.ToString())) + receivedCoins.Add(received.AsCoin()); var alreadyAccounted = new HashSet(invoice.Payments.Select(p => p.Outpoint)); bool dirtyAddress = false; @@ -363,7 +363,7 @@ namespace BTCPayServer.Services.Invoices } }, null, 0, (int)PollInterval.TotalMilliseconds); - leases.Add(_EventAggregator.Subscribe(async b => { await NotifyBlock(); })); + leases.Add(_EventAggregator.Subscribe(async b => { await NotifyBlock(); })); leases.Add(_EventAggregator.Subscribe(async b => { await NotifyReceived(b.ScriptPubKey); })); return Task.CompletedTask; diff --git a/BTCPayServer/Services/Wallets/BTCPayWallet.cs b/BTCPayServer/Services/Wallets/BTCPayWallet.cs index 93693d754..8c0736c7e 100644 --- a/BTCPayServer/Services/Wallets/BTCPayWallet.cs +++ b/BTCPayServer/Services/Wallets/BTCPayWallet.cs @@ -53,8 +53,8 @@ namespace BTCPayServer.Services.Wallets public async Task GetBalance(DerivationStrategyBase derivationStrategy) { var result = await _Client.SyncAsync(derivationStrategy, null, true); - return result.Confirmed.UTXOs.Select(u => u.Output.Value) - .Concat(result.Unconfirmed.UTXOs.Select(u => u.Output.Value)) + return result.Confirmed.UTXOs.Select(u => u.Value) + .Concat(result.Unconfirmed.UTXOs.Select(u => u.Value)) .Sum(); } }