FIX: default invoice expiry is 24h

This commit is contained in:
Overtorment 2020-01-19 23:43:45 +00:00
parent b56064a7ba
commit 0f6a4d8cba

View File

@ -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';