mirror of
https://github.com/mempool/mempool.git
synced 2025-03-26 17:51:45 +01:00
Add opcodes that can be used for tapscript multisig
This commit is contained in:
parent
e94dc67b31
commit
188096e651
@ -316,7 +316,7 @@ export function parseTapscriptMultisig(script: string): undefined | { m: number,
|
||||
}
|
||||
|
||||
const finalOp = ops.pop();
|
||||
if (finalOp !== 'OP_NUMEQUAL' && finalOp !== 'OP_GREATERTHANOREQUAL') {
|
||||
if (!['OP_NUMEQUAL', 'OP_NUMEQUALVERIFY', 'OP_GREATERTHANOREQUAL', 'OP_GREATERTHAN', 'OP_EQUAL', 'OP_EQUALVERIFY'].includes(finalOp)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -331,6 +331,10 @@ export function parseTapscriptMultisig(script: string): undefined | { m: number,
|
||||
return;
|
||||
}
|
||||
|
||||
if (finalOp === 'OP_GREATERTHAN') {
|
||||
m += 1;
|
||||
}
|
||||
|
||||
if (ops.length % 3 !== 0) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user