lnbits / withdraw

LNbits Withdraw Extension
MIT License
6 stars 9 forks source link

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

Open raweber42 opened 3 months ago

raweber42 commented 3 months ago

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.