diff --git a/BTCPayServer/Payments/Bitcoin/NBXplorerListener.cs b/BTCPayServer/Payments/Bitcoin/NBXplorerListener.cs index c7e3c3d4a..90754858d 100644 --- a/BTCPayServer/Payments/Bitcoin/NBXplorerListener.cs +++ b/BTCPayServer/Payments/Bitcoin/NBXplorerListener.cs @@ -210,7 +210,7 @@ namespace BTCPayServer.Payments.Bitcoin private async Task UpdatePaymentStatesForPendingInvoices(BTCPayWallet wallet) { var pendingInvoices = await _InvoiceRepository.GetPendingInvoices(); - var actionBlock = new ActionBlock(async invoiceId => await UpdatePaymentStates(wallet, invoiceId), + var actionBlock = new ActionBlock(invoiceId => UpdatePaymentStates(wallet, invoiceId), new ExecutionDataflowBlockOptions { CancellationToken = _Cts.Token,