Don't display multisig tag on lightning/liquid contracts.

refs #324
This commit is contained in:
softsimon 2021-02-03 19:03:59 +07:00
parent 0c979e9440
commit ccdf41c5b6
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -43,6 +43,7 @@ export class AddressLabelsComponent implements OnInit {
} else {
this.liquid = 'Emergency Peg Out';
}
return;
}
[
@ -51,11 +52,14 @@ export class AddressLabelsComponent implements OnInit {
].forEach((item) => {
if (item.regexp.test(this.vin.inner_witnessscript_asm)) {
this.lightning = item.label;
return;
}
}
);
if (this.lightning) {
return;
}
if (this.vin.inner_witnessscript_asm.indexOf('OP_CHECKMULTISIG') > -1) {
const matches = this.getMatches(this.vin.inner_witnessscript_asm, /OP_PUSHNUM_([0-9])/g, 1);
this.multisig = true;