diff --git a/BTCPayServer.Tests/UnitTest1.cs b/BTCPayServer.Tests/UnitTest1.cs
index 1efbf8f86..a8ff9c33d 100644
--- a/BTCPayServer.Tests/UnitTest1.cs
+++ b/BTCPayServer.Tests/UnitTest1.cs
@@ -811,7 +811,7 @@ namespace BTCPayServer.Tests
output.ScriptPubKey = invoiceAddress.ScriptPubKey;
using (var cts = new CancellationTokenSource(10000))
- using (var listener = tester.ExplorerClient.CreateNotificationSession())
+ using (var listener = tester.ExplorerClient.CreateWebsocketNotificationSession())
{
listener.ListenAllDerivationSchemes();
var replaced = tester.ExplorerNode.SignRawTransaction(tx);
diff --git a/BTCPayServer.Tests/docker-compose.yml b/BTCPayServer.Tests/docker-compose.yml
index 9d70d56b9..5627bcf87 100644
--- a/BTCPayServer.Tests/docker-compose.yml
+++ b/BTCPayServer.Tests/docker-compose.yml
@@ -69,7 +69,7 @@ services:
nbxplorer:
- image: nicolasdorier/nbxplorer:1.1.0.18
+ image: nicolasdorier/nbxplorer:2.0.0.0
restart: unless-stopped
ports:
- "32838:32838"
diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj
index 1feaceb8d..f7af1d7fb 100644
--- a/BTCPayServer/BTCPayServer.csproj
+++ b/BTCPayServer/BTCPayServer.csproj
@@ -49,7 +49,7 @@
-
+
diff --git a/BTCPayServer/Payments/Bitcoin/NBXplorerListener.cs b/BTCPayServer/Payments/Bitcoin/NBXplorerListener.cs
index c294a4f8b..7ae9d6880 100644
--- a/BTCPayServer/Payments/Bitcoin/NBXplorerListener.cs
+++ b/BTCPayServer/Payments/Bitcoin/NBXplorerListener.cs
@@ -51,7 +51,7 @@ namespace BTCPayServer.Payments.Bitcoin
}
CompositeDisposable leases = new CompositeDisposable();
- ConcurrentDictionary _SessionsByCryptoCode = new ConcurrentDictionary();
+ ConcurrentDictionary _SessionsByCryptoCode = new ConcurrentDictionary();
private Timer _ListenPoller;
TimeSpan _PollInterval;
@@ -114,7 +114,7 @@ namespace BTCPayServer.Payments.Bitcoin
return;
if (_Cts.IsCancellationRequested)
return;
- var session = await client.CreateNotificationSessionAsync(_Cts.Token).ConfigureAwait(false);
+ var session = await client.CreateWebsocketNotificationSessionAsync(_Cts.Token).ConfigureAwait(false);
if (!_SessionsByCryptoCode.TryAdd(network.CryptoCode, session))
{
await session.DisposeAsync();
@@ -187,7 +187,7 @@ namespace BTCPayServer.Payments.Bitcoin
if (cleanup)
{
Logs.PayServer.LogInformation($"Disconnected from WebSocket of NBXplorer ({network.CryptoCode})");
- _SessionsByCryptoCode.TryRemove(network.CryptoCode, out NotificationSession unused);
+ _SessionsByCryptoCode.TryRemove(network.CryptoCode, out WebsocketNotificationSession unused);
if (_SessionsByCryptoCode.Count == 0 && _Cts.IsCancellationRequested)
{
_RunningTask.TrySetResult(true);
diff --git a/BTCPayServer/Services/Wallets/BTCPayWallet.cs b/BTCPayServer/Services/Wallets/BTCPayWallet.cs
index 14be0bbf6..c21ed79b8 100644
--- a/BTCPayServer/Services/Wallets/BTCPayWallet.cs
+++ b/BTCPayServer/Services/Wallets/BTCPayWallet.cs
@@ -122,7 +122,7 @@ namespace BTCPayServer.Services.Wallets
UTXOChanges result = null;
try
{
- result = await _Client.GetUTXOsAsync(strategy, null, false, cancellation).ConfigureAwait(false);
+ result = await _Client.GetUTXOsAsync(strategy, cancellation).ConfigureAwait(false);
}
catch
{
@@ -153,7 +153,7 @@ namespace BTCPayServer.Services.Wallets
public Task FetchTransactions(DerivationStrategyBase derivationStrategyBase)
{
- return _Client.GetTransactionsAsync(derivationStrategyBase, null, false);
+ return _Client.GetTransactionsAsync(derivationStrategyBase);
}
public Task BroadcastTransactionsAsync(List transactions)