Fix: Allow detection of 1 byte annexes
This commit is contained in:
		
							parent
							
								
									95a8752a0a
								
							
						
					
					
						commit
						43d41fca95
					
				@ -560,7 +560,6 @@ export class Common {
 | 
			
		||||
        const witness = input.witness;
 | 
			
		||||
        // See BIP 341: Script validation rules
 | 
			
		||||
        const hasAnnex = witness.length >= 2 &&
 | 
			
		||||
          witness[witness.length - 1].length > 1 &&
 | 
			
		||||
          witness[witness.length - 1][0] === 0x50;
 | 
			
		||||
        const scriptSpendMinLength = hasAnnex ? 3 : 2;
 | 
			
		||||
        const maybeScriptSpend = witness.length >= scriptSpendMinLength;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user