Display sigops & adjusted vsize in transaction page details
This commit is contained in:
		
							parent
							
								
									09e4e44e88
								
							
						
					
					
						commit
						ec63c822db
					
				@ -211,6 +211,8 @@ class BitcoinRoutes {
 | 
			
		||||
          bestDescendant: tx.bestDescendant || null,
 | 
			
		||||
          descendants: tx.descendants || null,
 | 
			
		||||
          effectiveFeePerVsize: tx.effectiveFeePerVsize || null,
 | 
			
		||||
          sigops: tx.sigops,
 | 
			
		||||
          adjustedVsize: tx.adjustedVsize,
 | 
			
		||||
        });
 | 
			
		||||
        return;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
@ -271,6 +271,10 @@
 | 
			
		||||
                <td i18n="transaction.vsize|Transaction Virtual Size">Virtual size</td>
 | 
			
		||||
                <td [innerHTML]="'‎' + (tx.weight / 4 | vbytes: 2)"></td>
 | 
			
		||||
              </tr>
 | 
			
		||||
              <tr *ngIf="cpfpInfo && cpfpInfo.adjustedVsize && cpfpInfo.adjustedVsize > (tx.weight / 4)">
 | 
			
		||||
                <td i18n="transaction.adjusted-vsize|Transaction Adjusted VSize">Adjusted vsize</td>
 | 
			
		||||
                <td [innerHTML]="'‎' + (cpfpInfo.adjustedVsize | vbytes: 2)"></td>
 | 
			
		||||
              </tr>
 | 
			
		||||
              <tr>
 | 
			
		||||
                <td i18n="block.weight">Weight</td>
 | 
			
		||||
                <td [innerHTML]="'‎' + (tx.weight | wuBytes: 2)"></td>
 | 
			
		||||
@ -289,6 +293,10 @@
 | 
			
		||||
                <td i18n="transaction.locktime">Locktime</td>
 | 
			
		||||
                <td [innerHTML]="'‎' + (tx.locktime | number)"></td>
 | 
			
		||||
              </tr>
 | 
			
		||||
              <tr *ngIf="cpfpInfo && cpfpInfo.adjustedVsize && cpfpInfo.adjustedVsize > (tx.weight / 4)">
 | 
			
		||||
                <td i18n="transaction.sigops|Transaction Sigops">Sigops</td>
 | 
			
		||||
                <td [innerHTML]="'‎' + (cpfpInfo.sigops | number)"></td>
 | 
			
		||||
              </tr>
 | 
			
		||||
              <tr>
 | 
			
		||||
                <td i18n="transaction.hex">Transaction hex</td>
 | 
			
		||||
                <td><a target="_blank" href="{{ network === '' ? '' : '/' + network }}/api/tx/{{ txId }}/hex"><fa-icon [icon]="['fas', 'external-link-alt']" [fixedWidth]="true"></fa-icon></a></td>
 | 
			
		||||
 | 
			
		||||
@ -25,6 +25,8 @@ export interface CpfpInfo {
 | 
			
		||||
  descendants?: Ancestor[];
 | 
			
		||||
  bestDescendant?: BestDescendant | null;
 | 
			
		||||
  effectiveFeePerVsize?: number;
 | 
			
		||||
  sigops?: number;
 | 
			
		||||
  adjustedVsize?: number;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export interface RbfInfo {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user