From 0f6a4d8cbac002c98c33237bfac158aede891d5c Mon Sep 17 00:00:00 2001 From: Overtorment Date: Sun, 19 Jan 2020 23:43:45 +0000 Subject: [PATCH] FIX: default invoice expiry is 24h --- class/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/User.js b/class/User.js index cc92305..cf8a69e 100644 --- a/class/User.js +++ b/class/User.js @@ -267,7 +267,7 @@ export class User { } invoice.amt = decoded.satoshis; - invoice.expire_time = 3600; + invoice.expire_time = 3600 * 24; // ^^^default; will keep for now. if we want to un-hardcode it - it should be among tags (`expire_time`) invoice.timestamp = decoded.timestamp; invoice.type = 'user_invoice';