diff --git a/src/services/helpers/logger.ts b/src/services/helpers/logger.ts index f58f6c97..4d6601c9 100644 --- a/src/services/helpers/logger.ts +++ b/src/services/helpers/logger.ts @@ -23,7 +23,6 @@ const sanitizeFileName = (fileName: string): string => { const openWriter = (fileName: string): Writer => { const now = new Date() const date = `${now.getFullYear()}-${z(now.getMonth() + 1)}-${z(now.getDate())}` - // const sanitizedFileName = sanitizeFileName(fileName) const logPath = `${logsDir}/${fileName}_${date}.log` // Ensure parent directory exists const dirPath = logPath.substring(0, logPath.lastIndexOf('/')) diff --git a/src/services/main/paymentManager.ts b/src/services/main/paymentManager.ts index 222c3a74..3d103b9f 100644 --- a/src/services/main/paymentManager.ts +++ b/src/services/main/paymentManager.ts @@ -268,6 +268,7 @@ export default class { return false } this.addressPaidCb({ hash: tx.txHash, index: outputIndex }, output.address, Number(output.amount), 'lnd') + .catch(err => log(ERROR, "failed to process root address output:", err.message || err)) return true } @@ -285,6 +286,7 @@ export default class { const outputIndex = Number(output.outputIndex) log(`processing missed chain tx: address=${output.address}, txHash=${tx.txHash}, amount=${amount}, outputIndex=${outputIndex}`) this.addressPaidCb({ hash: tx.txHash, index: outputIndex }, output.address, amount, 'lnd') + .catch(err => log(ERROR, "failed to process user address output:", err.message || err)) return true } diff --git a/src/services/storage/migrations/1766000000000-tracked_provider_height.ts b/src/services/storage/migrations/1766000000000-tracked_provider_height.ts deleted file mode 100644 index 5e0b349d..00000000 --- a/src/services/storage/migrations/1766000000000-tracked_provider_height.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { MigrationInterface, QueryRunner } from "typeorm"; - -export class TrackedProviderHeight1766504040000 implements MigrationInterface { - name = 'TrackedProviderHeight1766504040000' - - public async up(queryRunner: QueryRunner): Promise { - await queryRunner.query(`ALTER TABLE "tracked_provider" ADD "latest_checked_height" integer NOT NULL DEFAULT (0)`); - } - - public async down(queryRunner: QueryRunner): Promise { - await queryRunner.query(`ALTER TABLE "tracked_provider" DROP COLUMN "latest_checked_height"`); - } -} -