From c246ed958fb31dbbdbbc39632d4393c8ded90ebf Mon Sep 17 00:00:00 2001 From: nymkappa Date: Tue, 31 May 2022 11:20:20 +0200 Subject: [PATCH] Create rates table on all networks --- backend/src/api/blocks.ts | 2 -- backend/src/api/database-migration.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/src/api/blocks.ts b/backend/src/api/blocks.ts index 5c530b691..814d967f3 100644 --- a/backend/src/api/blocks.ts +++ b/backend/src/api/blocks.ts @@ -314,8 +314,6 @@ class Blocks { } } - const currentUsdPrice = fiatConversion.getConversionRates().USD; - while (this.currentBlockHeight < blockHeightTip) { if (this.currentBlockHeight < blockHeightTip - config.MEMPOOL.INITIAL_BLOCKS_AMOUNT) { this.currentBlockHeight = blockHeightTip; diff --git a/backend/src/api/database-migration.ts b/backend/src/api/database-migration.ts index 45207007e..680acec08 100644 --- a/backend/src/api/database-migration.ts +++ b/backend/src/api/database-migration.ts @@ -185,7 +185,7 @@ class DatabaseMigration { await this.$executeQuery('ALTER TABLE `blocks` ADD INDEX `hash` (`hash`);'); } - if (databaseSchemaVersion < 19 && isBitcoin === true) { + if (databaseSchemaVersion < 19) { await this.$executeQuery(this.getCreateRatesTableQuery(), await this.$checkIfTableExists('rates')); } } catch (e) {