Merge branch 'master' into nymkappa/bugfix/cleanup-mining-states

This commit is contained in:
wiz
2023-03-04 16:46:44 +09:00
committed by GitHub
8 changed files with 75 additions and 21 deletions

View File

@@ -1033,6 +1033,7 @@ class DatabaseMigration {
await this.$executeQuery(`TRUNCATE blocks`);
await this.$executeQuery(`TRUNCATE hashrates`);
await this.$executeQuery(`TRUNCATE difficulty_adjustments`);
await this.$executeQuery('DELETE FROM `pools`');
await this.$executeQuery('ALTER TABLE pools AUTO_INCREMENT = 1');
await this.$executeQuery(`UPDATE state SET string = NULL WHERE name = 'pools_json_sha'`);