Added first seen on mempool transactions.

This commit is contained in:
softsimon
2020-02-28 01:09:07 +07:00
parent c3b047b6da
commit 2422356704
17 changed files with 100 additions and 34 deletions

View File

@@ -14,7 +14,7 @@
<div class="block-size">{{ block.size | bytes: 2 }}</div>
<div class="transaction-count">{{ block.tx_count }} transactions</div>
<br /><br />
<div class="time-difference">{{ block.timestamp | timeSince : trigger }} ago</div>
<div class="time-difference"><app-time-since [time]="block.timestamp" [fastRender]="true"></app-time-since> ago</div>
</div>
</div>
</div>

View File

@@ -14,8 +14,6 @@ export class BlockchainBlocksComponent implements OnInit, OnChanges, OnDestroy {
blocks: Block[] = [];
blocksSubscription: Subscription;
interval: any;
trigger = 0;
arrowVisible = false;
arrowLeftPx = 30;
@@ -35,8 +33,6 @@ export class BlockchainBlocksComponent implements OnInit, OnChanges, OnDestroy {
this.moveArrowToPosition();
});
this.interval = setInterval(() => this.trigger++, 10 * 1000);
}
ngOnChanges() {