Skip to content

Bug: creating lightning invoices via BTC-LN or BTC-LNURL (via NWC) fails #84

@andreasgriffin

Description

@andreasgriffin

Connecting coinos to ptcpay via NWC results in invalid invoices:

BTC-LN: Payment method unavailable (Impossible to create lightning invoice (Valid values are between -62135596800 and 253402300799, inclusive. (Parameter 'seconds')))

Creating invoices via LNURL also fails.

AI suggested that the problem could lay with:

That error is coming from a Unix timestamp conversion where the code expects seconds, but it’s being given a value that’s way too large (almost always milliseconds).

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