Use core to fetch block because esplora/electrs still return integer difficulty

This commit is contained in:
nymkappa
2023-03-03 13:59:17 +09:00
parent 0b77000aab
commit 7ea2d3b808
5 changed files with 14 additions and 14 deletions

View File

@@ -1023,6 +1023,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'`);