Create rates table on all networks

This commit is contained in:
nymkappa 2022-05-31 11:20:20 +02:00
parent 0ecc03e484
commit c246ed958f
No known key found for this signature in database
GPG key ID: E155910B16E8BD04
2 changed files with 1 additions and 3 deletions

View file

@ -314,8 +314,6 @@ class Blocks {
} }
} }
const currentUsdPrice = fiatConversion.getConversionRates().USD;
while (this.currentBlockHeight < blockHeightTip) { while (this.currentBlockHeight < blockHeightTip) {
if (this.currentBlockHeight < blockHeightTip - config.MEMPOOL.INITIAL_BLOCKS_AMOUNT) { if (this.currentBlockHeight < blockHeightTip - config.MEMPOOL.INITIAL_BLOCKS_AMOUNT) {
this.currentBlockHeight = blockHeightTip; this.currentBlockHeight = blockHeightTip;

View file

@ -185,7 +185,7 @@ class DatabaseMigration {
await this.$executeQuery('ALTER TABLE `blocks` ADD INDEX `hash` (`hash`);'); 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')); await this.$executeQuery(this.getCreateRatesTableQuery(), await this.$checkIfTableExists('rates'));
} }
} catch (e) { } catch (e) {