Merge pull request #2739 from mempool/mononaut/fix-liquid-tests

Fix broken tests on liquid
This commit is contained in:
wiz 2022-11-28 14:57:45 +09:00 committed by GitHub
commit f1122384dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {