|
@ -1144,19 +1144,4 @@ Script.prototype.getSignatureOperationsCount = function(accurate) { |
|
|
return n; |
|
|
return n; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
Script.prototype.witnessSignatureOperationsCount = function (version, program, witness, flags) { |
|
|
|
|
|
if (version == 0) { |
|
|
|
|
|
if (program.length == 20) { |
|
|
|
|
|
return 1; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (program.length == 32 && witness.size > 0) { |
|
|
|
|
|
var subscript = new Script(witness.back); |
|
|
|
|
|
return subscript.getSignatureOperationsCount(true); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
module.exports = Script; |
|
|
module.exports = Script; |
|
|