| 
									
										
										
										
											2023-04-19 03:34:13 +09:00
										 |  |  | <ng-container *ngIf="(loadingBlocks$ | async) === false; else loadingBlocks" [class.minimal]="minimal"> | 
					
						
							|  |  |  |   <div class="mempool-blocks-container" [class.time-ltr]="timeLtr" [style.--block-size]="blockWidth+'px'" *ngIf="(difficultyAdjustments$ | async) as da;"> | 
					
						
							| 
									
										
										
										
											2024-03-06 21:43:50 +00:00
										 |  |  |     <div class="flashing" *ngIf="(mempoolBlocks$ | async) as mempoolBlocks"> | 
					
						
							|  |  |  |       <ng-template ngFor let-projectedBlock [ngForOf]="mempoolBlocks" let-i="index" [ngForTrackBy]="trackByFn"> | 
					
						
							| 
									
										
										
										
											2023-05-04 17:50:27 -04:00
										 |  |  |         <div | 
					
						
							|  |  |  |           *ngIf="minimal && spotlight > 0 && spotlight === i + 1" | 
					
						
							|  |  |  |           class="spotlight-bottom" | 
					
						
							|  |  |  |           [style.right]="mempoolBlockStyles[i].right" | 
					
						
							|  |  |  |         ></div> | 
					
						
							| 
									
										
										
										
											2024-04-21 14:54:50 +02:00
										 |  |  |         <div @blockEntryTrigger [@.disabled]="i > 0 || !animateEntry" [attr.data-cy]="'mempool-block-' + i" class="bitcoin-block text-center mempool-block" [class.hide-block]="count && i >= count" id="mempool-block-{{ i }}" [ngStyle]="mempoolBlockStyles[i]" [class.blink-bg]="projectedBlock.blink" [style]="blockTransformation"> | 
					
						
							| 
									
										
										
										
											2023-06-05 13:27:17 -04:00
										 |  |  |           <a draggable="false" [routerLink]="[getHref(i) | relativeUrl]" | 
					
						
							| 
									
										
										
										
											2021-12-19 15:20:21 +09:00
										 |  |  |             class="blockLink" [ngClass]="{'disabled': (this.stateService.blockScrolling$ | async)}"> </a> | 
					
						
							| 
									
										
										
										
											2021-08-08 21:43:03 -03:00
										 |  |  |           <div class="block-body"> | 
					
						
							| 
									
										
										
										
											2023-04-19 03:34:13 +09:00
										 |  |  |             <ng-container *ngIf="!minimal"> | 
					
						
							| 
									
										
										
										
											2023-04-19 00:21:02 +09:00
										 |  |  |               <div [attr.data-cy]="'mempool-block-' + i + '-fees'" class="fees"> | 
					
						
							| 
									
										
										
										
											2023-06-15 15:17:32 -04:00
										 |  |  |                 ~<app-fee-rate [fee]="projectedBlock.medianFee" unitClass="" rounding="1.0-0"></app-fee-rate> | 
					
						
							| 
									
										
										
										
											2023-04-19 00:21:02 +09:00
										 |  |  |               </div> | 
					
						
							|  |  |  |               <div [attr.data-cy]="'mempool-block-' + i + '-fee-span'" class="fee-span"> | 
					
						
							| 
									
										
										
										
											2023-06-15 15:17:32 -04:00
										 |  |  |                 <app-fee-rate [fee]="projectedBlock.feeRange[0]" [showUnit]="false" rounding="1.0-0" unitClass=""></app-fee-rate> | 
					
						
							|  |  |  |                 - | 
					
						
							|  |  |  |                 <app-fee-rate [fee]="projectedBlock.feeRange[projectedBlock.feeRange.length - 1]" rounding="1.0-0" unitClass=""></app-fee-rate> | 
					
						
							| 
									
										
										
										
											2023-04-19 00:21:02 +09:00
										 |  |  |               </div> | 
					
						
							| 
									
										
										
										
											2024-04-21 14:54:50 +02:00
										 |  |  |               <div *ngIf="blockDisplayMode === 'fees'; else noMiningInfo" class="block-size"> | 
					
						
							| 
									
										
										
										
											2023-04-19 00:21:02 +09:00
										 |  |  |                 <app-amount [attr.data-cy]="'mempool-block-' + i + '-total-fees'" [satoshis]="projectedBlock.totalFees" digitsInfo="1.2-3" [noFiat]="true"></app-amount> | 
					
						
							| 
									
										
										
										
											2021-08-08 21:43:03 -03:00
										 |  |  |               </div> | 
					
						
							| 
									
										
										
										
											2024-04-01 18:21:43 +09:00
										 |  |  |               <ng-template #noMiningInfo> | 
					
						
							|  |  |  |                 <div class="block-size" [innerHTML]="'‎' + (projectedBlock.blockSize | bytes: 2)"></div> | 
					
						
							|  |  |  |               </ng-template> | 
					
						
							| 
									
										
										
										
											2023-04-19 00:21:02 +09:00
										 |  |  |               <div [attr.data-cy]="'mempool-block-' + i + '-transaction-count'" class="transaction-count"> | 
					
						
							|  |  |  |                 <ng-container *ngTemplateOutlet="projectedBlock.nTx === 1 ? transactionsSingular : transactionsPlural; context: {$implicit: projectedBlock.nTx | number}"></ng-container> | 
					
						
							|  |  |  |                 <ng-template #transactionsSingular let-i i18n="shared.transaction-count.singular">{{ i }} transaction</ng-template> | 
					
						
							|  |  |  |                 <ng-template #transactionsPlural let-i i18n="shared.transaction-count.plural">{{ i }} transactions</ng-template> | 
					
						
							|  |  |  |               </div> | 
					
						
							|  |  |  |               <div [attr.data-cy]="'mempool-block-' + i + '-time'" class="time-difference" *ngIf="projectedBlock.blockVSize <= stateService.blockVSize; else mergedBlock"> | 
					
						
							|  |  |  |                 <ng-template [ngIf]="network === 'liquid' || network === 'liquidtestnet'" [ngIfElse]="timeDiffMainnet"> | 
					
						
							| 
									
										
										
										
											2023-06-29 10:06:03 -04:00
										 |  |  |                   <app-time kind="until" [time]="(1 * i) + now + 61000" [fastRender]="false" [fixedRender]="true" [precision]="1" minUnit="minute"></app-time> | 
					
						
							| 
									
										
										
										
											2023-04-19 00:21:02 +09:00
										 |  |  |                 </ng-template> | 
					
						
							|  |  |  |                 <ng-template #timeDiffMainnet> | 
					
						
							| 
									
										
										
										
											2024-02-11 22:50:34 +00:00
										 |  |  |                   <app-time kind="until" [time]="da.adjustedTimeAvg * (i + 1) + now + da.timeOffset" [fastRender]="false" [fixedRender]="true" [precision]="1" minUnit="minute"></app-time> | 
					
						
							| 
									
										
										
										
											2023-04-19 00:21:02 +09:00
										 |  |  |                 </ng-template> | 
					
						
							|  |  |  |               </div> | 
					
						
							|  |  |  |               <ng-template #mergedBlock> | 
					
						
							|  |  |  |                 <div [attr.data-cy]="'mempool-block-' + i + '-blocks'" class="time-difference"> | 
					
						
							|  |  |  |                   <b>(<ng-container *ngTemplateOutlet="blocksPlural; context: {$implicit: projectedBlock.blockVSize / stateService.blockVSize | ceil }"></ng-container>)</b> | 
					
						
							|  |  |  |                   <ng-template #blocksPlural let-i i18n="shared.blocks">{{ i }} <span class="shared-block">blocks</span></ng-template> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |               </ng-template> | 
					
						
							|  |  |  |             </ng-container> | 
					
						
							| 
									
										
										
										
											2020-03-25 21:29:40 +07:00
										 |  |  |           </div> | 
					
						
							| 
									
										
										
										
											2021-08-08 21:43:03 -03:00
										 |  |  |           <span class="animated-border"></span> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2021-08-08 21:43:03 -03:00
										 |  |  |       </ng-template> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2024-04-13 08:04:58 +00:00
										 |  |  |     <div *ngIf="arrowVisible" id="arrow-up" [ngStyle]="{'right': rightPosition + (blockWidth * 0.3) + containerOffset + 'px', transition: transition }" [class.blink]="txPosition?.accelerated"></div> | 
					
						
							| 
									
										
										
										
											2020-02-16 22:15:07 +07:00
										 |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2021-08-08 21:43:03 -03:00
										 |  |  | </ng-container> | 
					
						
							| 
									
										
										
										
											2020-12-06 23:44:08 +07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-08 21:43:03 -03:00
										 |  |  | <ng-template #loadingBlocks> | 
					
						
							| 
									
										
										
										
											2023-04-19 03:34:13 +09:00
										 |  |  |   <div class="mempool-blocks-container" [class.time-ltr]="timeLtr" [style.--block-size]="blockWidth+'px'"> | 
					
						
							| 
									
										
										
										
											2021-08-08 21:43:03 -03:00
										 |  |  |     <div class="flashing"> | 
					
						
							|  |  |  |       <ng-template ngFor let-projectedBlock [ngForOf]="mempoolEmptyBlocks" let-i="index" [ngForTrackBy]="trackByFn"> | 
					
						
							| 
									
										
										
										
											2023-04-19 03:34:13 +09:00
										 |  |  |         <div class="bitcoin-block text-center mempool-block" [class.hide-block]="count && i >= count" id="mempool-block-{{ i }}" [ngStyle]="mempoolEmptyBlockStyles[i]"></div> | 
					
						
							| 
									
										
										
										
											2021-08-08 21:43:03 -03:00
										 |  |  |       </ng-template> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2021-07-10 10:04:15 -03:00
										 |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2021-08-08 21:43:03 -03:00
										 |  |  | </ng-template> |