mirror of
https://github.com/mempool/mempool.git
synced 2025-04-12 05:49:21 +02:00
[blocks] update sha in memory/db before re-indexing blocks
This commit is contained in:
parent
faa83866fd
commit
ff4aca8370
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user