support trees of RBF replacements
This commit is contained in:
@@ -17,37 +17,22 @@
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="rbf-chains" style="min-height: 295px">
|
||||
<ng-container *ngIf="rbfChains$ | async as chains">
|
||||
<div *ngFor="let chain of chains" class="chain">
|
||||
<div class="rbf-trees" style="min-height: 295px">
|
||||
<ng-container *ngIf="rbfTrees$ | async as trees">
|
||||
<div *ngFor="let tree of trees" class="tree">
|
||||
<p class="info">
|
||||
<app-time-since [time]="chain[chain.length - 1].time"></app-time-since>
|
||||
<span class="type">
|
||||
<span *ngIf="isMined(chain)" class="badge badge-success" i18n="transaction.rbf.mined">Mined</span>
|
||||
<span *ngIf="isFullRbf(chain)" class="badge badge-info" i18n="transaction.full-rbf">Full RBF</span>
|
||||
<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>
|
||||
<app-time-since [time]="tree.time"></app-time-since>
|
||||
</p>
|
||||
<div class="txids">
|
||||
<span class="txid">
|
||||
<a class="rbf-link" [routerLink]="['/tx/' | relativeUrl, chain[0].tx.txid]">
|
||||
<span class="d-inline">{{ chain[0].tx.txid | shortenString : 24 }}</span>
|
||||
</a>
|
||||
</span>
|
||||
<span class="arrow">
|
||||
<fa-icon [icon]="['fas', 'arrow-right']" [fixedWidth]="true"></fa-icon>
|
||||
</span>
|
||||
<span class="txid right">
|
||||
<a class="rbf-link" [routerLink]="['/tx/' | relativeUrl, chain[chain.length - 1].tx.txid]">
|
||||
<span class="d-inline">{{ chain[chain.length - 1].tx.txid | shortenString : 24 }}</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<div class="timeline-wrapper" [class.mined]="isMined(chain)">
|
||||
<app-rbf-timeline [replacements]="chain"></app-rbf-timeline>
|
||||
<div class="timeline-wrapper" [class.mined]="isMined(tree)">
|
||||
<app-rbf-timeline [replacements]="tree"></app-rbf-timeline>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="no-replacements" *ngIf="!chains?.length">
|
||||
<div class="no-replacements" *ngIf="!trees?.length">
|
||||
<p i18n="rbf.no-replacements-yet">there are no replacements in the mempool yet!</p>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
Reference in New Issue
Block a user