[blocks] update sha in memory/db before re-indexing blocks

This commit is contained in:
nymkappa committed 2025-01-22 11:26:34 +09:00
1 parent faa83866fd
commit ff4aca8370
1 file changed
+1 -1
+1 -1
View File
@@ -88,8 +88,8 @@ class PoolsUpdater {
try {
await DB.query('START TRANSACTION;');
await poolsParser.migratePoolsJson();
await this.updateDBSha(githubSha);
await poolsParser.migratePoolsJson();
await DB.query('COMMIT;');
} catch (e) {
logger.err(`Could not migrate mining pools, rolling back. Exception: ${JSON.stringify(e)}`, this.tag);