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

🐛 LN orders with phoenixd don't seem to expire #1591 #1642

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/lib/server/phoenixd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export async function phoenixdLookupInvoice(paymentHash: string) {
`Could not lookup invoice ${paymentHash} on PhoenixD: ${res.status} ${await res.text()}`
);
}

const json = z
.object({
paymentHash: z.string(),
Expand All @@ -109,7 +108,7 @@ export async function phoenixdLookupInvoice(paymentHash: string) {
isPaid: z.boolean(),
receivedSat: z.number(),
fees: z.number(),
completedAt: z.number().nullable(), // in MS
completedAt: z.number().optional(), // in MS
createdAt: z.number() // in MS
})
.parse(await res.json());
Expand Down
Loading