| 
									
										
										
										
											2022-05-10 14:57:43 +02:00
										 |  |  | <app-indexing-progress *ngIf="!widget"></app-indexing-progress> | 
					
						
							| 
									
										
										
										
											2022-05-02 17:28:58 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-22 15:43:04 +09:00
										 |  |  | <div class="container-xl" [class]="widget ? 'widget' : 'full-height'"> | 
					
						
							| 
									
										
										
										
											2022-03-11 17:09:13 +01:00
										 |  |  |   <h1 *ngIf="!widget" class="float-left" i18n="latest-blocks.blocks">Blocks</h1> | 
					
						
							| 
									
										
										
										
											2022-03-10 18:35:37 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   <div class="clearfix"></div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |   <div style="min-height: 295px"> | 
					
						
							|  |  |  |     <table class="table table-borderless"> | 
					
						
							|  |  |  |       <thead> | 
					
						
							|  |  |  |         <th class="height" [class]="widget ? 'widget' : ''" i18n="latest-blocks.height">Height</th> | 
					
						
							| 
									
										
										
										
											2022-03-17 18:17:22 +01:00
										 |  |  |         <th class="pool text-left" [class]="widget ? 'widget' : ''" i18n="mining.pool-name"> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |           Pool</th> | 
					
						
							|  |  |  |         <th class="timestamp" i18n="latest-blocks.timestamp" *ngIf="!widget">Timestamp</th> | 
					
						
							|  |  |  |         <th class="mined" i18n="latest-blocks.mined" *ngIf="!widget">Mined</th> | 
					
						
							|  |  |  |         <th class="reward text-right" i18n="latest-blocks.reward" [class]="widget ? 'widget' : ''"> | 
					
						
							|  |  |  |           Reward</th> | 
					
						
							|  |  |  |         <th class="fees text-right" i18n="latest-blocks.fees" *ngIf="!widget">Fees</th> | 
					
						
							|  |  |  |         <th class="txs text-right" i18n="latest-blocks.transactions" [class]="widget ? 'widget' : ''">Txs</th> | 
					
						
							|  |  |  |         <th class="size" i18n="latest-blocks.size" *ngIf="!widget">Size</th> | 
					
						
							|  |  |  |       </thead> | 
					
						
							|  |  |  |       <tbody *ngIf="blocks$ | async as blocks; else skeleton" [style]="isLoading ? 'opacity: 0.75' : ''"> | 
					
						
							|  |  |  |         <tr *ngFor="let block of blocks; let i= index; trackBy: trackByBlock"> | 
					
						
							| 
									
										
										
										
											2022-04-18 11:54:52 +09:00
										 |  |  |           <td [class]="widget ? 'widget' : ''"> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             <a [routerLink]="['/block' | relativeUrl, block.height]">{{ block.height | 
					
						
							|  |  |  |               }}</a> | 
					
						
							| 
									
										
										
										
											2022-03-11 14:54:34 +01:00
										 |  |  |           </td> | 
					
						
							| 
									
										
										
										
											2022-03-11 17:09:13 +01:00
										 |  |  |           <td class="pool text-left" [class]="widget ? 'widget' : ''"> | 
					
						
							| 
									
										
										
										
											2022-03-15 23:33:51 +01:00
										 |  |  |             <div class="tooltip-custom"> | 
					
						
							| 
									
										
										
										
											2022-03-29 12:50:57 +09:00
										 |  |  |               <a class="clear-link" [routerLink]="['/mining/pool' | relativeUrl, block.extras.pool.slug]"> | 
					
						
							| 
									
										
										
										
											2022-04-18 11:54:52 +09:00
										 |  |  |                 <img width="22" height="22" src="{{ block.extras.pool['logo'] }}" | 
					
						
							| 
									
										
										
										
											2022-03-15 23:33:51 +01:00
										 |  |  |                   onError="this.src = './resources/mining-pools/default.svg'"> | 
					
						
							|  |  |  |                 <span class="pool-name">{{ block.extras.pool.name }}</span> | 
					
						
							|  |  |  |               </a> | 
					
						
							| 
									
										
										
										
											2022-03-22 18:31:28 +09:00
										 |  |  |               <span *ngIf="!widget" class="tooltiptext badge badge-secondary scriptmessage">{{ block.extras.coinbaseRaw | hex2ascii }}</span> | 
					
						
							| 
									
										
										
										
											2022-03-15 23:33:51 +01:00
										 |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2022-03-11 14:54:34 +01:00
										 |  |  |           </td> | 
					
						
							| 
									
										
										
										
											2022-03-11 17:09:13 +01:00
										 |  |  |           <td class="timestamp" *ngIf="!widget"> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             ‎{{ block.timestamp * 1000 | date:'yyyy-MM-dd HH:mm' }} | 
					
						
							| 
									
										
										
										
											2022-03-11 14:54:34 +01:00
										 |  |  |           </td> | 
					
						
							| 
									
										
										
										
											2022-03-11 17:09:13 +01:00
										 |  |  |           <td class="mined" *ngIf="!widget"> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             <app-time-since [time]="block.timestamp" [fastRender]="true"></app-time-since> | 
					
						
							| 
									
										
										
										
											2022-03-11 14:54:34 +01:00
										 |  |  |           </td> | 
					
						
							| 
									
										
										
										
											2022-03-11 17:09:13 +01:00
										 |  |  |           <td class="reward text-right" [class]="widget ? 'widget' : ''"> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             <app-amount [satoshis]="block.extras.reward" digitsInfo="1.2-2"></app-amount> | 
					
						
							| 
									
										
										
										
											2022-03-11 14:54:34 +01:00
										 |  |  |           </td> | 
					
						
							| 
									
										
										
										
											2022-03-11 17:09:13 +01:00
										 |  |  |           <td class="fees text-right" *ngIf="!widget"> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             <app-amount [satoshis]="block.extras.totalFees" digitsInfo="1.2-2"></app-amount> | 
					
						
							| 
									
										
										
										
											2022-03-11 14:54:34 +01:00
										 |  |  |           </td> | 
					
						
							| 
									
										
										
										
											2022-03-11 17:09:13 +01:00
										 |  |  |           <td class="txs text-right" [class]="widget ? 'widget' : ''"> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             {{ block.tx_count | number }} | 
					
						
							| 
									
										
										
										
											2022-03-11 14:54:34 +01:00
										 |  |  |           </td> | 
					
						
							| 
									
										
										
										
											2022-03-11 17:09:13 +01:00
										 |  |  |           <td class="size" *ngIf="!widget"> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             <div class="progress"> | 
					
						
							|  |  |  |               <div class="progress-bar progress-mempool" role="progressbar" | 
					
						
							|  |  |  |                 [ngStyle]="{'width': (block.weight / stateService.env.BLOCK_WEIGHT_UNITS)*100 + '%' }"></div> | 
					
						
							|  |  |  |               <div class="progress-text" [innerHTML]="block.size | bytes: 2"></div> | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2022-03-11 14:54:34 +01:00
										 |  |  |           </td> | 
					
						
							|  |  |  |         </tr> | 
					
						
							|  |  |  |       </tbody> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |       <ng-template #skeleton> | 
					
						
							|  |  |  |         <tbody> | 
					
						
							|  |  |  |           <tr *ngFor="let item of skeletonLines"> | 
					
						
							|  |  |  |             <td class="height" [class]="widget ? 'widget' : ''"> | 
					
						
							| 
									
										
										
										
											2022-04-18 11:54:52 +09:00
										 |  |  |               <span class="skeleton-loader" style="max-width: 75px"></span> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             </td> | 
					
						
							|  |  |  |             <td class="pool text-left" [class]="widget ? 'widget' : ''"> | 
					
						
							| 
									
										
										
										
											2022-04-18 11:54:52 +09:00
										 |  |  |               <img width="1" height="25" style="opacity: 0"> | 
					
						
							|  |  |  |               <span class="skeleton-loader" style="max-width: 125px"></span> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             </td> | 
					
						
							|  |  |  |             <td class="timestamp" *ngIf="!widget"> | 
					
						
							| 
									
										
										
										
											2022-04-18 11:54:52 +09:00
										 |  |  |               <span class="skeleton-loader" style="max-width: 150px"></span> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             </td> | 
					
						
							|  |  |  |             <td class="mined" *ngIf="!widget"> | 
					
						
							| 
									
										
										
										
											2022-04-18 11:54:52 +09:00
										 |  |  |               <span class="skeleton-loader" style="max-width: 125px"></span> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             </td> | 
					
						
							|  |  |  |             <td class="reward text-right" [class]="widget ? 'widget' : ''"> | 
					
						
							| 
									
										
										
										
											2022-04-18 11:54:52 +09:00
										 |  |  |               <span class="skeleton-loader" style="max-width: 75px"></span> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             </td> | 
					
						
							|  |  |  |             <td class="fees text-right" *ngIf="!widget"> | 
					
						
							| 
									
										
										
										
											2022-04-18 11:54:52 +09:00
										 |  |  |               <span class="skeleton-loader" style="max-width: 75px"></span> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             </td> | 
					
						
							|  |  |  |             <td class="txs text-right" [class]="widget ? 'widget' : ''"> | 
					
						
							| 
									
										
										
										
											2022-04-18 11:54:52 +09:00
										 |  |  |               <span class="skeleton-loader" style="max-width: 75px"></span> | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |             </td> | 
					
						
							|  |  |  |             <td class="size" *ngIf="!widget"> | 
					
						
							|  |  |  |               <span class="skeleton-loader"></span> | 
					
						
							|  |  |  |             </td> | 
					
						
							|  |  |  |           </tr> | 
					
						
							|  |  |  |         </tbody> | 
					
						
							|  |  |  |       </ng-template> | 
					
						
							|  |  |  |     </table> | 
					
						
							| 
									
										
										
										
											2022-03-10 18:35:37 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |     <ngb-pagination *ngIf="!widget" class="pagination-container float-right mt-2" [class]="isLoading ? 'disabled' : ''" | 
					
						
							| 
									
										
										
										
											2022-03-22 15:16:15 +09:00
										 |  |  |       [collectionSize]="blocksCount" [rotate]="true" [maxSize]="maxSize" [pageSize]="15" [(page)]="page" | 
					
						
							| 
									
										
										
										
											2022-03-12 17:33:07 +01:00
										 |  |  |       (pageChange)="pageChange(page)" [boundaryLinks]="true" [ellipses]="false"> | 
					
						
							|  |  |  |     </ngb-pagination> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  |    | 
					
						
							| 
									
										
										
										
											2022-03-31 18:14:07 +09:00
										 |  |  | </div> |