docs: private static int getSigOpCount(List<ScriptChunk> chunks, boolean accurate) throws ScriptException {
          int sigOps = 0;
          int lastOpCode = OP_INVALIDOPCODE;
          for (ScriptChunk chunk : chunks) {
              if (chunk.isOpCode()) {
                  switch (chunk.opcode) {
                  case OP_CHECKSIG:
                  case OP_CHECKSIGVERIFY:
                      sigOps++;
                      break;
                  case OP_CHECKMULTISIG:
                  case OP_CHECKMULTISIGVERIFY:
                      if (accurate && lastOpCode >= OP_1 && lastOpCode <= OP_16)
                          sigOps += decodeFromOpN(lastOpCode);
                      else
                          sigOps += 20;
                      break;
                  default:
                      break;
                  }
                  lastOpCode = chunk.opcode;
              }
          }
          return sigOps;
      }