[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 {
|
try {
|
||||||
await DB.query('START TRANSACTION;');
|
await DB.query('START TRANSACTION;');
|
||||||
await poolsParser.migratePoolsJson();
|
|
||||||
await this.updateDBSha(githubSha);
|
await this.updateDBSha(githubSha);
|
||||||
|
await poolsParser.migratePoolsJson();
|
||||||
await DB.query('COMMIT;');
|
await DB.query('COMMIT;');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.err(`Could not migrate mining pools, rolling back. Exception: ${JSON.stringify(e)}`, this.tag);
|
logger.err(`Could not migrate mining pools, rolling back. Exception: ${JSON.stringify(e)}`, this.tag);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user