github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docs/source/cli/sawtooth-validator.rst (about)

     1  ..
     2     Copyright 2017 Intel Corporation
     3  
     4     Licensed under the Apache License, Version 2.0 (the "License");
     5     you may not use this file except in compliance with the License.
     6     You may obtain a copy of the License at
     7  
     8         http://www.apache.org/licenses/LICENSE-2.0
     9  
    10     Unless required by applicable law or agreed to in writing, software
    11     distributed under the License is distributed on an "AS IS" BASIS,
    12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13     See the License for the specific language governing permissions and
    14     limitations under the License.
    15  
    16  .. _validator-cli-reference-label:
    17  
    18  ******************
    19  sawtooth-validator
    20  ******************
    21  
    22  The ``sawtooth-validator`` command controls the behavior of the validator.
    23  
    24  A validator is the component ultimately responsible for validating
    25  batches of transactions, combining them into blocks, maintaining
    26  consensus with the network, and coordinating communication between
    27  clients, other validators, and transaction processors. Much of the
    28  actual validation is delegated to other components, such as
    29  transaction processors and the active consensus module.
    30  
    31  Note the following options, which provide several ways to configure the
    32  validator.
    33  
    34  - Use the ``--peering`` option to set the peering type to ``dynamic``
    35    or ``static``.
    36  
    37    - If set to ``static``, use the ``--peers`` option to list the URLs
    38      of all peers that the validator should connect to, using the
    39      format ``tcp``://`hostname`:`port`. Specify multiple peer URLs in a
    40      comma-separated list.
    41  
    42    - If set to ``dynamic``, any static peers will be processed first,
    43      before starting the topology buildout starting, then the URLs
    44      specified by ``--seeds`` will be used for the initial connection
    45      to the validator network.
    46  
    47  - Use ``--scheduler`` to set the scheduler type to ``serial`` or
    48    ``parallel``. Note that both scheduler types result in the same
    49    deterministic results and are completely interchangeable. However,
    50    parallel processing of transactions provides a performance
    51    improvement even for fast transaction workloads by reducing the
    52    overall latency effects that occur when transactions are processed
    53    serially.
    54  
    55  - Use ``--network-auth`` to specify the required authorization
    56    procedure (``trust`` or ``challenge``) that validator connections
    57    must go through before they are allowed to participate on the
    58    network. To use network permissions, specify ``challenge``, which
    59    requires connections to sign a challenge so their identity can be
    60    proved.
    61  
    62  .. literalinclude:: output/sawtooth-validator_usage.out
    63     :language: console
    64  
    65  .. Licensed under Creative Commons Attribution 4.0 International License
    66  .. https://creativecommons.org/licenses/by/4.0/