mirror of
https://github.com/mempool/mempool.git
synced 2025-04-10 21:09:30 +02:00
Update tapscript multisig minimum size
This commit is contained in:
parent
8efea61601
commit
e94dc67b31
@ -310,8 +310,10 @@ export function parseTapscriptMultisig(script: string): undefined | { m: number,
|
||||
}
|
||||
|
||||
const ops = script.split(' ');
|
||||
// At minimum, one pubkey group (3 tokens) + m push + final opcode = 5 tokens
|
||||
if (ops.length < 5) return;
|
||||
// At minimum, 2 pubkey group (3 tokens) + m push + final opcode = 8 tokens
|
||||
if (ops.length < 8) {
|
||||
return;
|
||||
}
|
||||
|
||||
const finalOp = ops.pop();
|
||||
if (finalOp !== 'OP_NUMEQUAL' && finalOp !== 'OP_GREATERTHANOREQUAL') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user