Merge pull request #1769 from mempool/nymkappa/bugfix/divergence-fix

Re-add hash field in the mysql block query
This commit is contained in:
wiz 2022-06-01 17:20:38 +09:00 committed by GitHub
commit ee5cd1cd96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,6 +307,7 @@ class BlocksRepository {
try { try {
const [rows]: any[] = await DB.query(`SELECT const [rows]: any[] = await DB.query(`SELECT
height, height,
hash,
hash as id, hash as id,
UNIX_TIMESTAMP(blocks.blockTimestamp) as blockTimestamp, UNIX_TIMESTAMP(blocks.blockTimestamp) as blockTimestamp,
size, size,