Skip to content

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

@raweber42

Description

@raweber42

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions