mirror of
https://github.com/mempool/mempool.git
synced 2025-03-03 17:47:01 +01:00
Create rates table on all networks
This commit is contained in:
parent
0ecc03e484
commit
c246ed958f
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue