Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling a payment with a testnet invoice on a mainnet lnbits instance returns 200 status code #35

Open
raweber42 opened this issue May 28, 2024 · 0 comments

Comments

@raweber42
Copy link

raweber42 commented May 28, 2024

When I call my withdraw extension with a testnet invoice, I still receive a 200 ok status response. In my opinion, this should rather check the network of the invoice and return a 400 bad request. Because 200 ok indicates, that the invoice is valid, what isn't the case.

Same goes for handing over a mainnet invoice to a testnet instance.

Maybe there is some kind of misconfiguration in my lnbits instance, but I honestly doubt it.

Let me know if I can provide any logs or so for clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant