Optimize price API response size reduce the number of query to that API

This commit is contained in:
nymkappa
2023-02-23 13:13:20 +09:00
parent f6c7839524
commit 5749820999
6 changed files with 132 additions and 50 deletions

View File

@@ -327,7 +327,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
this.fetchRbfHistory$.next(this.tx.txid);
}
this.priceService.getBlockPrice$(tx.status.block_time).pipe(
this.priceService.getBlockPrice$(tx.status.block_time, true).pipe(
tap((price) => {
this.blockConversion = price;
})