Compare commits

..

No commits in common. "63ee4ce7192e35e550b40d1a798306a7c07b505c" and "e0e186f4f4e42897ddf39c82d214ee3c238fd56a" have entirely different histories.

View File

@ -944,20 +944,7 @@ export default class Services {
// 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
try {
await this.sdkClient.scan_blocks(this.currentBlockHeight, BLINDBITURL);
} catch (e) {
console.error(`Failed to scan blocks: ${e}`);
return;
}
// If everything went well, we can update our storage
try {
const device = this.dumpDeviceFromMemory();
await this.saveDeviceInDatabase(device);
} catch (e) {
console.error(`Failed to save updated device: ${e}`);
}
await this.sdkClient.scan_blocks(this.currentBlockHeight, BLINDBITURL);
} else {
// Up to date, just returns
return;