Move block audit cache to apiService

This commit is contained in:
natsoni committed 2024-07-12 16:00:51 +09:00
1 parent 99ea1ad0a0
commit c3b9828d42
5 files changed
+13 -13

No files matched your search

@@ -366,7 +366,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
const fetchAudit = auditAvailable && !isCoinbase;
if (fetchAudit) {
// If block audit is already cached, use it to get transaction audit
const blockAuditLoaded = this.cacheService.getBlockAuditLoaded(hash);
const blockAuditLoaded = this.apiService.getBlockAuditLoaded(hash);
if (blockAuditLoaded) {
return this.apiService.getBlockAudit$(hash).pipe(
map(audit => {