From deb88032cb91e4aec5ac7b6db3680b1c93c79fcc Mon Sep 17 00:00:00 2001 From: radWorx Date: Mon, 15 Feb 2021 15:15:38 -0500 Subject: [PATCH] Update README.md added missing space, moved below Using the test lightning-cli --- BTCPayServer.Tests/README.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/BTCPayServer.Tests/README.md b/BTCPayServer.Tests/README.md index 353d64854..7b862234e 100644 --- a/BTCPayServer.Tests/README.md +++ b/BTCPayServer.Tests/README.md @@ -26,21 +26,6 @@ You can also generate blocks: .\docker-bitcoin-generate.ps1 3 ``` -### Using Polar to test Lightning payments - -- Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. -- Go to your store's General Settings and enable Lightning. -- Build your connection string using the Connect information in the Polar app. - -LND Connection string example: -type=lnd-rest;server=https://127.0.0.1:8084/;macaroonfilepath="local path to admin.macaroon on your computer, without these quotes";allowinsecure=true - -Now you can create a lightning invoice on BTCPay Server regtest and make a payment through Polar. - -PLEASE NOTE: You may get an exception break in Visual Studio. You must quickly click "Continue" in VS so the invoice is generated. -Or, uncheck the box that says, "Break when this exceptiontype is thrown". - - ### Using the test litecoin-cli Same as bitcoin-cli, but with `.\docker-litecoin-cli.ps1` and `.\docker-litecoin-cli.sh` instead. @@ -70,6 +55,20 @@ Please, run the test `CanSetLightningServer`, this will establish a channel betw Alternatively you can run the `./docker-lightning-channel-setup.sh` script to establish the channel connection. The `./docker-lightning-channel-teardown.sh` script closes any existing lightning channels. +### Alternative Lightning testing: Using Polar to test Lightning payments + +- Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. +- Go to your store's General Settings and enable Lightning. +- Build your connection string using the Connect information in the Polar app. + +LND Connection string example: +type=lnd-rest;server=https://127.0.0.1:8084/;macaroonfilepath="local path to admin.macaroon on your computer, without these quotes";allowinsecure=true + +Now you can create a lightning invoice on BTCPay Server regtest and make a payment through Polar. + +PLEASE NOTE: You may get an exception break in Visual Studio. You must quickly click "Continue" in VS so the invoice is generated. +Or, uncheck the box that says, "Break when this exception type is thrown". + ## FAQ `docker-compose up dev` failed or tests are not passing, what should I do?