Browse Source

Remove currently unused function witnessSignatureOperationsCount

patch-2
Braydon Fuller 9 years ago
committed by Braydon Fuller
parent
commit
09346a5dd2
  1. 15
      lib/script/script.js

15
lib/script/script.js

@ -1144,19 +1144,4 @@ Script.prototype.getSignatureOperationsCount = function(accurate) {
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;

Loading…
Cancel
Save