mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 05:12:35 +01:00
Fixed asset infinite scroll.
This commit is contained in:
parent
0d435c9e1a
commit
d662292afb
@ -96,7 +96,6 @@ export class AssetComponent implements OnInit, OnDestroy {
|
|||||||
switchMap(([asset, assetsData]) => {
|
switchMap(([asset, assetsData]) => {
|
||||||
this.asset = asset;
|
this.asset = asset;
|
||||||
this.assetContract = assetsData[this.asset.asset_id];
|
this.assetContract = assetsData[this.asset.asset_id];
|
||||||
console.log(this.assetContract);
|
|
||||||
this.isNativeAsset = asset.asset_id === this.nativeAssetId;
|
this.isNativeAsset = asset.asset_id === this.nativeAssetId;
|
||||||
this.updateChainStats();
|
this.updateChainStats();
|
||||||
this.websocketService.startTrackAsset(asset.asset_id);
|
this.websocketService.startTrackAsset(asset.asset_id);
|
||||||
@ -188,7 +187,7 @@ export class AssetComponent implements OnInit, OnDestroy {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.isLoadingTransactions = true;
|
this.isLoadingTransactions = true;
|
||||||
this.electrsApiService.getAddressTransactionsFromHash$(this.asset.asset_id, this.lastTransactionTxId)
|
this.electrsApiService.getAssetTransactionsFromHash$(this.asset.asset_id, this.lastTransactionTxId)
|
||||||
.subscribe((transactions: Transaction[]) => {
|
.subscribe((transactions: Transaction[]) => {
|
||||||
this.lastTransactionTxId = transactions[transactions.length - 1].txid;
|
this.lastTransactionTxId = transactions[transactions.length - 1].txid;
|
||||||
this.loadedConfirmedTxCount += transactions.length;
|
this.loadedConfirmedTxCount += transactions.length;
|
||||||
@ -201,7 +200,7 @@ export class AssetComponent implements OnInit, OnDestroy {
|
|||||||
// this.receieved = this.asset.chain_stats.funded_txo_sum + this.asset.mempool_stats.funded_txo_sum;
|
// this.receieved = this.asset.chain_stats.funded_txo_sum + this.asset.mempool_stats.funded_txo_sum;
|
||||||
// this.sent = this.asset.chain_stats.spent_txo_sum + this.asset.mempool_stats.spent_txo_sum;
|
// this.sent = this.asset.chain_stats.spent_txo_sum + this.asset.mempool_stats.spent_txo_sum;
|
||||||
this.txCount = this.asset.chain_stats.tx_count + this.asset.mempool_stats.tx_count;
|
this.txCount = this.asset.chain_stats.tx_count + this.asset.mempool_stats.tx_count;
|
||||||
// this.totalConfirmedTxCount = this.asset.chain_stats.tx_count;
|
this.totalConfirmedTxCount = this.asset.chain_stats.tx_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
|
Loading…
Reference in New Issue
Block a user