Support for Litecoin and Dogecoin added

This commit is contained in:
2021-01-17 18:48:47 +01:00
parent fc71aed660
commit 881b350252
14 changed files with 538 additions and 34 deletions

View File

@@ -148,7 +148,7 @@ export class InvoiceManager {
* This method checks if a payment has been made in time and that the right amount was sent.
*/
async validatePayment(invoice: IInvoice, tx: string): Promise<void> {
if (invoice.dueBy.getTime() < Date.now()) {
if (invoice.dueBy.getTime() < Date.now() && invoice.status <= PaymentStatus.PENDING && invoice.status >= PaymentStatus.REQUESTED) {
invoice.status = PaymentStatus.TOOLATE;
await invoice.save();