question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When NBXplorer is not ready/synced, LN is used as payment option - (LNURL should not activate if the node is down)

See original GitHub issue

Describe 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

  1. Setup BTCPayServer using Docker
  2. Set BTCPAYGEN_CRYPTO1 to btc and enable LN
  3. Start BTCPayServer and wait until it’s ready (but before NBXplorer is ready)
  4. 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
image image

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:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
Kukkscommented, Mar 22, 2022

I will make lnurl not activate if node is down I guess

0reactions
pavlenexcommented, Mar 22, 2022

@Kukks what do you propose we do with this one? Any ideas on how we can check for it?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found