Update frontend/src/app/bitcoin.utils.ts
triple equals Co-authored-by: softsimon <softsimon@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									ed36554f76
								
							
						
					
					
						commit
						8d52f08de5
					
				@ -64,7 +64,7 @@ export function calcSegwitFeeGains(tx: Transaction) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (isP2tr) {
 | 
					    if (isP2tr) {
 | 
				
			||||||
      if (vin.witness.length == 1) {
 | 
					      if (vin.witness.length === 1) {
 | 
				
			||||||
        // key path spend
 | 
					        // key path spend
 | 
				
			||||||
        // we don't know if this was a multisig or single sig (the goal of taproot :)),
 | 
					        // we don't know if this was a multisig or single sig (the goal of taproot :)),
 | 
				
			||||||
        // so calculate fee savings by comparing to the cheapest single sig input type: P2WPKH and say "saved at least ...%"
 | 
					        // so calculate fee savings by comparing to the cheapest single sig input type: P2WPKH and say "saved at least ...%"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user