Merge branch 'master' into feature/mempool-sync-threshold

This commit is contained in:
softsimon authored and GitHub committed 2022-02-10 16:28:05 +04:00
commit b7f93a5726
3 files changed
+52 -17

No files matched your search

+6 -2
View File
@@ -46,8 +46,12 @@ class BlocksRepository {
];
await connection.query(query, params);
} catch (e) {
logger.err('$saveBlockInDatabase() error' + (e instanceof Error ? e.message : e));
} catch (e: any) {
if (e.errno === 1062) { // ER_DUP_ENTRY
logger.debug(`$saveBlockInDatabase() - Block ${block.height} has already been indexed, ignoring`);
} else {
logger.err('$saveBlockInDatabase() error' + (e instanceof Error ? e.message : e));
}
}
connection.release();