github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/validator/packaging/validator.toml.example (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 17 # 18 # Sawtooth -- Validator Configuration 19 # 20 21 # This file should exist in the defined config directory and allows 22 # validators to be configured without the need for command line options. 23 24 # The following is a possible example. 25 26 # Bind is used to set the network and component endpoints. It should be a list 27 # of strings in the format "option:endpoint", where the options are currently 28 # network and component. 29 bind = [ 30 "network:tcp://127.0.0.1:8800", 31 "component:tcp://127.0.0.1:4004" 32 ] 33 34 # The type of peering approach the validator should take. Choices are 'static' 35 # which only attempts to peer with candidates provided with the peers option, 36 # and 'dynamic' which will do topology buildouts. If 'dynamic' is provided, 37 # any static peers will be processed first, prior to the topology buildout 38 # starting. 39 peering = "static" 40 41 # Advertised network endpoint URL. 42 endpoint = "tcp://127.0.0.1:8800" 43 44 # Uri(s) to connect to in order to initially connect to the validator network, 45 # in the format tcp://hostname:port. This is not needed in static peering mode 46 # and defaults to None. Replace host1 with the seed's hostname or IP address. 47 # seeds = ["tcp://host1:8800"] 48 49 # A list of peers to attempt to connect to in the format tcp://hostname:port. 50 # It defaults to None. Replace host1 with the peer's hostname or IP address. 51 # peers = ["tcp://host1:8800"] 52 53 # The type of scheduler to use. The choices are 'serial' or 'parallel'. 54 scheduler = 'serial' 55 56 # A Curve ZMQ key pair are used to create a secured network based on side-band 57 # sharing of a single network key pair to all participating nodes. 58 # Note if the config file does not exist or these are not set, the network 59 # will default to being insecure. 60 network_public_key = 'wFMwoOt>yFqI/ek.G[tfMMILHWw#vXB[Sv}>l>i)' 61 network_private_key = 'r&oJ5aQDj4+V]p2:Lz70Eu0x#m%IwzBdP(}&hWM*' 62 63 # The minimum number of peers required before stopping peer search. 64 minimum_peer_connectivity = 3 65 66 # The maximum number of peers that will be accepted. 67 maximum_peer_connectivity = 10 68 69 # The host and port for Open TSDB database used for metrics 70 # opentsdb_url = "" 71 72 # The name of the database used for storing metrics 73 # opentsdb_db = "" 74 75 # opentsdb_username = "" 76 77 # opentsdb_password = "" 78 79 # The type of authorization that must be performed for the different type of 80 # roles on the network. The different supported authorization types are "trust" 81 # and "challenge". The default is "trust". 82 83 # [roles] 84 # network = "trust" 85 86 # Any off-chain transactor permission roles. The roles should match the roles 87 # stored in state for transactor permissioning. Due to the roles having . in the 88 # key, the key must be wrapped in quotes so toml can process it. The value 89 # should be the file name of a policy stored in the policy_dir. 90 91 # [permissions] 92 # transactor = "policy.example" 93 # "transactor.transaction_signer" = "policy.example"