Add fee to Cpfp API
This commit is contained in:
		
							parent
							
								
									0a116804e8
								
							
						
					
					
						commit
						cdaf42797f
					
				@ -160,6 +160,7 @@ class BitcoinRoutes {
 | 
			
		||||
          descendants: tx.descendants || null,
 | 
			
		||||
          effectiveFeePerVsize: tx.effectiveFeePerVsize || null,
 | 
			
		||||
          sigops: tx.sigops,
 | 
			
		||||
          fee: tx.fee,
 | 
			
		||||
          adjustedVsize: tx.adjustedVsize,
 | 
			
		||||
          acceleration: tx.acceleration,
 | 
			
		||||
          acceleratedBy: tx.acceleratedBy || undefined,
 | 
			
		||||
 | 
			
		||||
@ -32,6 +32,7 @@ export function calculateCpfp(tx: MempoolTransactionExtended, mempool: { [txid:
 | 
			
		||||
      descendants: tx.descendants || [],
 | 
			
		||||
      effectiveFeePerVsize: tx.effectiveFeePerVsize || tx.adjustedFeePerVsize || tx.feePerVsize,
 | 
			
		||||
      sigops: tx.sigops,
 | 
			
		||||
      fee: tx.fee,
 | 
			
		||||
      adjustedVsize: tx.adjustedVsize,
 | 
			
		||||
      acceleration: tx.acceleration
 | 
			
		||||
    };
 | 
			
		||||
@ -70,6 +71,7 @@ export function calculateCpfp(tx: MempoolTransactionExtended, mempool: { [txid:
 | 
			
		||||
    descendants: tx.descendants || [],
 | 
			
		||||
    effectiveFeePerVsize: tx.effectiveFeePerVsize || tx.adjustedFeePerVsize || tx.feePerVsize,
 | 
			
		||||
    sigops: tx.sigops,
 | 
			
		||||
    fee: tx.fee,
 | 
			
		||||
    adjustedVsize: tx.adjustedVsize,
 | 
			
		||||
    acceleration: tx.acceleration
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
@ -223,6 +223,7 @@ export interface CpfpInfo {
 | 
			
		||||
  sigops?: number;
 | 
			
		||||
  adjustedVsize?: number,
 | 
			
		||||
  acceleration?: boolean,
 | 
			
		||||
  fee?: number;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export interface TransactionStripped {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user