mirror of
https://github.com/mempool/mempool.git
synced 2026-08-20 13:28:00 +02:00
Don't try to reset hashrates states if not bitcoin
This commit is contained in:
parent
d17a78715a
commit
87405ec4a5
1 changed files with 4 additions and 2 deletions
|
|
@ -97,8 +97,10 @@ class Server {
|
|||
await databaseMigration.$truncateIndexedData(tables);
|
||||
}
|
||||
await databaseMigration.$initializeOrMigrateDatabase();
|
||||
await this.$resetHashratesIndexingState();
|
||||
await poolsParser.migratePoolsJson();
|
||||
if (Common.indexingEnabled()) {
|
||||
await this.$resetHashratesIndexingState();
|
||||
await poolsParser.migratePoolsJson();
|
||||
}
|
||||
} catch (e) {
|
||||
throw new Error(e instanceof Error ? e.message : 'Error');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue