From 1c92a40984c52b109f2cdb14028dd00515271b12 Mon Sep 17 00:00:00 2001 From: Sosthene Date: Sat, 23 Aug 2025 16:10:11 +0200 Subject: [PATCH] [bug] remove test code --- src/services/service.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/services/service.ts b/src/services/service.ts index 03beb9a..1a911d0 100755 --- a/src/services/service.ts +++ b/src/services/service.ts @@ -989,15 +989,6 @@ export default class Services { throw new Error(`Failed to save updated device: ${e}`); } } else { - // For testing, set last_scan and birthday a few blocks ago - device.sp_wallet.last_scan = this.currentBlockHeight - 10; - device.sp_wallet.birthday = this.currentBlockHeight - 10; - try { - this.sdkClient.restore_device(device); - } catch (e) { - throw new Error(`Failed to restore device: ${e}`); - } - await this.saveDeviceInDatabase(device); // This is existing device, we need to catch up if last_scan is lagging behind chain_tip if (device.sp_wallet.last_scan < this.currentBlockHeight) { // We need to catch up