parent
							
								
									276117fba9
								
							
						
					
					
						commit
						999163d7ad
					
				@ -2,17 +2,16 @@
 | 
				
			|||||||
  *ngIf="multisig"
 | 
					  *ngIf="multisig"
 | 
				
			||||||
  class="badge badge-pill badge-warning"
 | 
					  class="badge badge-pill badge-warning"
 | 
				
			||||||
  i18n="address-labels.multisig"
 | 
					  i18n="address-labels.multisig"
 | 
				
			||||||
  >multisig {{ multisigM }} of {{ multisigN }}</span
 | 
					>multisig {{ multisigM }} of {{ multisigN }}</span>
 | 
				
			||||||
>
 | 
					
 | 
				
			||||||
<span
 | 
					<span
 | 
				
			||||||
  *ngIf="lightning"
 | 
					  *ngIf="lightning"
 | 
				
			||||||
  class="badge badge-pill badge-warning"
 | 
					  class="badge badge-pill badge-warning"
 | 
				
			||||||
  i18n="address-labels.upper-layer-peg-out"
 | 
					  i18n="address-labels.upper-layer-peg-out"
 | 
				
			||||||
  >Lightning {{ lightning }}</span
 | 
					>Lightning {{ lightning }}</span>
 | 
				
			||||||
>
 | 
					
 | 
				
			||||||
<span
 | 
					<span
 | 
				
			||||||
  *ngIf="liquid"
 | 
					  *ngIf="liquid"
 | 
				
			||||||
  class="badge badge-pill badge-warning"
 | 
					  class="badge badge-pill badge-warning"
 | 
				
			||||||
  i18n="address-labels.upper-layer-peg-out"
 | 
					  i18n="address-labels.upper-layer-peg-out"
 | 
				
			||||||
  >Liquid {{ liquid }}</span
 | 
					>Liquid {{ liquid }}</span>
 | 
				
			||||||
>
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -46,12 +46,11 @@ export class AddressLabelsComponent implements OnInit {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      [
 | 
					      [
 | 
				
			||||||
        [/^OP_DUP OP_HASH160/, 'HTLC'],
 | 
					        {regexp: /^OP_DUP OP_HASH160/, label: 'HTLC'},
 | 
				
			||||||
        [/^OP_IF OP_PUSHBYTES_33 \w{33} OP_ELSE OP_PUSHBYTES_2 \w{2} OP_CSV OP_DROP/, 'Force Close']
 | 
					        {regexp: /^OP_IF OP_PUSHBYTES_33 \w{33} OP_ELSE OP_PUSHBYTES_2 \w{2} OP_CSV OP_DROP/, label: 'Force Close'}
 | 
				
			||||||
      ].forEach(
 | 
					      ].forEach((item) => {
 | 
				
			||||||
        ([re, label]) => {
 | 
					          if (item.regexp.test(this.vin.inner_witnessscript_asm)) {
 | 
				
			||||||
          if (re.test(this.vin.inner_witnessscript_asm)) {
 | 
					            this.lightning = item.label;
 | 
				
			||||||
            this.lightning = label;
 | 
					 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user