When NBXplorer is not ready/synced, LN is used as payment option - (LNURL should not activate if the node is down)
See original GitHub issueDescribe the bug
If an order is created via the Greenfield API (and NBXplorer is not synced) LN is used as the only payment checkout option, but doesn’t shown an QR code (and it should not have been an option to begin with).
Reproduce
- Setup BTCPayServer using Docker
- Set
BTCPAYGEN_CRYPTO1
tobtc
and enable LN - Start BTCPayServer and wait until it’s ready (but before NBXplorer is ready)
- Create an order via the Greenfield API (might work from the interface as well).
Expected behavior
I expected some kind of error or information screen that would warn the developer/user that BTCPayServer is not yet ready to process payments.
Screenshots
Starting | Payment page |
---|---|
Your BTCPay Environment:
- BTCPay Server Version: v1.4.7.0
- Deployment Method: Docker
- Browser: Chrome
Setup Parameters
-------SETUP-----------
Parameters passed:
BTCPAY_PROTOCOL:https
BTCPAY_HOST:btcpay.example.com
BTCPAY_ADDITIONAL_HOSTS:
REVERSEPROXY_HTTP_PORT:80
REVERSEPROXY_HTTPS_PORT:443
REVERSEPROXY_DEFAULT_HOST:none
BTCPAY_ENABLE_SSH:false
NBITCOIN_NETWORK:mainnet
LIGHTNING_ALIAS:example.com
BTCPAYGEN_CRYPTO1:btc
BTCPAYGEN_CRYPTO2:
BTCPAYGEN_CRYPTO3:
BTCPAYGEN_CRYPTO4:
BTCPAYGEN_CRYPTO5:
BTCPAYGEN_CRYPTO6:
BTCPAYGEN_CRYPTO7:
BTCPAYGEN_CRYPTO8:
BTCPAYGEN_CRYPTO9:
BTCPAYGEN_REVERSEPROXY:nginx
BTCPAYGEN_LIGHTNING:lnd
BTCPAYGEN_ADDITIONAL_FRAGMENTS:opt-add-tor;opt-lnd-autopilot
----------------------
Additional exported variables:
BTCPAY_DOCKER_COMPOSE=/server/BTCPayServer/btcpayserver-docker/Generated/docker-compose.generated.yml
BTCPAY_BASE_DIRECTORY=/server/BTCPayServer
BTCPAY_ENV_FILE=/server/BTCPayServer/.env
BTCPAYGEN_OLD_PREGEN=false
BTCPAY_SSHAUTHORIZEDKEYS=/datadir/host_authorized_keys
BTCPAY_HOST_SSHAUTHORIZEDKEYS:/server/.ssh/authorized_keys
BTCPAY_CRYPTOS:btc
BTCPAY_ANNOUNCEABLE_HOST:btcpay.example.com
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
What is the optimal way to lnurl-pay without running a ln ...
I am having a difficult time understanding what is the minimum I need to setup the payment address that I can then monitor...
Read more >Lightning Network (LN) and BTCPay Server
This guide will show you how to set up your Lightning Network (LN) node in BTCPay Server and guide you ... Do not...
Read more >LNURL – Enhancing Lightning's User Experience
This protocol enables a lightning node to create a static QR code that can be used to withdraw funds when someone interacts with...
Read more >Non-Custodial Mobile Wallets (Blixt, lnurl, bolt11, & bolt12 ...
In this episode of Twitter Spaces hosted by Bitcoin Magazine, P (@phjlljp) is joined by Hampus Sjöberg (@hampus_s), a Bitcoin developer who ...
Read more >LNBits LN URL w/ Ben Arc - YouTube
Ben Arc gives a keynote about LNbits and LN URL's at Bitcoin Amsterdam 2022. ... Take advantage of the early bird pricing ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will make lnurl not activate if node is down I guess
@Kukks what do you propose we do with this one? Any ideas on how we can check for it?