stricter multisig check + detect bare multisig when spent

This commit is contained in:
Antoni Spaanderman 2022-06-03 18:47:44 +02:00
parent 412f118d22
commit b930b9bf4f
No known key found for this signature in database
GPG Key ID: AE0B68E552E5DF8C

View File

@ -85,6 +85,8 @@ export class AddressLabelsComponent implements OnInit {
} }
this.detectMultisig(this.vin.inner_redeemscript_asm); this.detectMultisig(this.vin.inner_redeemscript_asm);
this.detectMultisig(this.vin.prevout.scriptpubkey_asm);
} }
detectMultisig(script: string) { detectMultisig(script: string) {
@ -118,7 +120,11 @@ export class AddressLabelsComponent implements OnInit {
} }
const m = parseInt(opM.match(/[0-9]+/)[0], 10); const m = parseInt(opM.match(/[0-9]+/)[0], 10);
this.label = $localize`:@@address-label.multisig:Multisig ${m}:multisigM: of ${n}:multisigN:` if (ops.length) {
return;
}
this.label = $localize`:@@address-label.multisig:Multisig ${m}:multisigM: of ${n}:multisigN:`;
} }
handleVout() { handleVout() {