Removing unused rbf frontend code
This commit is contained in:
		
							parent
							
								
									ae22b7b444
								
							
						
					
					
						commit
						85e071049c
					
				| @ -22,12 +22,12 @@ | ||||
|       <div *ngFor="let tree of trees" class="tree"> | ||||
|         <p class="info"> | ||||
|           <span class="type"> | ||||
|             <span *ngIf="isMined(tree)" class="badge badge-success" i18n="transaction.rbf.mined">Mined</span> | ||||
|             <span *ngIf="isFullRbf(tree)" class="badge badge-info" i18n="transaction.full-rbf">Full RBF</span> | ||||
|             <span *ngIf="tree.mined" class="badge badge-success" i18n="transaction.rbf.mined">Mined</span> | ||||
|             <span *ngIf="tree.fullRbf" class="badge badge-info" i18n="transaction.full-rbf">Full RBF</span> | ||||
|           </span> | ||||
|           <app-time kind="since" [time]="tree.time"></app-time> | ||||
|         </p> | ||||
|         <div class="timeline-wrapper" [class.mined]="isMined(tree)"> | ||||
|         <div class="timeline-wrapper" [class.mined]="tree.mined"> | ||||
|           <app-rbf-timeline [replacements]="tree"></app-rbf-timeline> | ||||
|         </div> | ||||
|       </div> | ||||
| @ -36,11 +36,6 @@ | ||||
|         <p i18n="rbf.no-replacements-yet">there are no replacements in the mempool yet!</p> | ||||
|       </div> | ||||
|     </ng-container> | ||||
|      | ||||
|     <!-- <ngb-pagination class="pagination-container float-right mt-2" [class]="isLoading ? 'disabled' : ''" | ||||
|       [collectionSize]="blocksCount" [rotate]="true" [maxSize]="maxSize" [pageSize]="15" [(page)]="page" | ||||
|       (pageChange)="pageChange(page)" [boundaryLinks]="true" [ellipses]="false"> | ||||
|     </ngb-pagination> --> | ||||
|   </div> | ||||
|    | ||||
| </div> | ||||
|  | ||||
| @ -53,25 +53,6 @@ export class RbfList implements OnInit, OnDestroy { | ||||
|     ); | ||||
|   } | ||||
| 
 | ||||
|   toggleFullRbf(event) { | ||||
|     this.router.navigate([], { | ||||
|       relativeTo: this.route, | ||||
|       fragment: this.fullRbf ? null : 'fullrbf' | ||||
|     }); | ||||
|   } | ||||
| 
 | ||||
|   isFullRbf(tree: RbfTree): boolean { | ||||
|     return tree.fullRbf; | ||||
|   } | ||||
| 
 | ||||
|   isMined(tree: RbfTree): boolean { | ||||
|     return tree.mined; | ||||
|   } | ||||
| 
 | ||||
|   // pageChange(page: number) {
 | ||||
|   //   this.fromTreeSubject.next(this.lastTreeId);
 | ||||
|   // }
 | ||||
| 
 | ||||
|   ngOnDestroy(): void { | ||||
|     this.websocketService.stopTrackRbf(); | ||||
|   } | ||||
|  | ||||
| @ -206,16 +206,4 @@ export class DashboardComponent implements OnInit, OnDestroy { | ||||
|   trackByBlock(index: number, block: BlockExtended) { | ||||
|     return block.height; | ||||
|   } | ||||
| 
 | ||||
|   checkFullRbf(tree: RbfTree): void { | ||||
|     let fullRbf = false; | ||||
|     for (const replaced of tree.replaces) { | ||||
|       if (!replaced.tx.rbf) { | ||||
|         fullRbf = true; | ||||
|       } | ||||
|       replaced.replacedBy = tree.tx; | ||||
|       this.checkFullRbf(replaced); | ||||
|     } | ||||
|     tree.tx.fullRbf = fullRbf; | ||||
|   } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user