From d293bc3947d8ed36dd07273fd8f009c48a36457f Mon Sep 17 00:00:00 2001 From: rockstardev Date: Fri, 25 May 2018 12:19:15 -0500 Subject: [PATCH] Throwing NotImplementedException for Listen / WaitInvoice --- .../Payments/Lightning/Lnd/LndInvoiceClient.cs | 12 +++++------- .../Lightning/Lnd/LndSwaggerClientCustomHttp.cs | 4 ++++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/BTCPayServer/Payments/Lightning/Lnd/LndInvoiceClient.cs b/BTCPayServer/Payments/Lightning/Lnd/LndInvoiceClient.cs index 1142565c5..e182b0240 100644 --- a/BTCPayServer/Payments/Lightning/Lnd/LndInvoiceClient.cs +++ b/BTCPayServer/Payments/Lightning/Lnd/LndInvoiceClient.cs @@ -74,13 +74,15 @@ namespace BTCPayServer.Payments.Lightning.Lnd // TODO: These two methods where you wait on invoice are still work in progress public Task Listen(CancellationToken cancellation = default(CancellationToken)) { - return Task.FromResult(this); + throw new NotImplementedException(); + //return Task.FromResult(this); } async Task ILightningListenInvoiceSession.WaitInvoice(CancellationToken cancellation) { - var resp = await _rpcClient.SubscribeInvoicesAsync(cancellation); - return ConvertLndInvoice(resp); + throw new NotImplementedException(); + //var resp = await _rpcClient.SubscribeInvoicesAsync(cancellation); + //return ConvertLndInvoice(resp); } // Eof work in progress @@ -144,8 +146,4 @@ namespace BTCPayServer.Payments.Lightning.Lnd } } } - - public partial class LndSwaggerClient - { - } } diff --git a/BTCPayServer/Payments/Lightning/Lnd/LndSwaggerClientCustomHttp.cs b/BTCPayServer/Payments/Lightning/Lnd/LndSwaggerClientCustomHttp.cs index 8f8187615..8d0d02ca7 100644 --- a/BTCPayServer/Payments/Lightning/Lnd/LndSwaggerClientCustomHttp.cs +++ b/BTCPayServer/Payments/Lightning/Lnd/LndSwaggerClientCustomHttp.cs @@ -89,4 +89,8 @@ namespace BTCPayServer.Payments.Lightning.Lnd return handler; } } + + public partial class LndSwaggerClient + { + } }