From 999fe0d268dbd8e50a99ae503d5fa68af77cfc60 Mon Sep 17 00:00:00 2001 From: Gustavo Inacio Date: Fri, 30 Aug 2024 23:04:12 +0200 Subject: [PATCH] chore: add warn logs for reverted ravs Signed-off-by: Gustavo Inacio --- packages/indexer-common/src/allocations/query-fees.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/indexer-common/src/allocations/query-fees.ts b/packages/indexer-common/src/allocations/query-fees.ts index b002cf3d4..a914b3d93 100644 --- a/packages/indexer-common/src/allocations/query-fees.ts +++ b/packages/indexer-common/src/allocations/query-fees.ts @@ -726,6 +726,12 @@ export class AllocationReceiptCollector implements ReceiptCollector { ` await this.models.receiptAggregateVouchers.sequelize?.query(query) + + this.logger.warn( + `Reverted Redeemed RAVs: ${ravsNotRedeemed + .map((rav) => `(${rav.senderAddress},${rav.allocationId})`) + .join(', ')}`, + ) } // we use blockTimestamp instead of NOW() because we must be older than