Merge branch 'master' into nymkappa/bugfix/block-timestamp

This commit is contained in:
wiz authored and GitHub committed 2022-11-29 14:25:45 +09:00
commit cc30da0b4d
51 files changed
+6516 -8235

No files matched your search

+4 -1
View File
@@ -652,7 +652,10 @@ class Blocks {
}
public async $getBlockAuditSummary(hash: string): Promise<any> {
let summary = await BlocksAuditsRepository.$getBlockAudit(hash);
let summary;
if (['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK)) {
summary = await BlocksAuditsRepository.$getBlockAudit(hash);
}
// fallback to non-audited transaction summary
if (!summary?.transactions?.length) {