mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 09:52:14 +01:00
Handle missing inner_redeemscript
This commit is contained in:
parent
882e8ec598
commit
eadbc139fa
@ -145,6 +145,10 @@ class TransactionUtils {
|
||||
}
|
||||
|
||||
public countScriptSigops(script: string, isRawScript: boolean = false, witness: boolean = false): number {
|
||||
if (!script?.length) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
let sigops = 0;
|
||||
// count OP_CHECKSIG and OP_CHECKSIGVERIFY
|
||||
sigops += (script.match(/OP_CHECKSIG/g)?.length || 0);
|
||||
|
Loading…
Reference in New Issue
Block a user