This article guides you through the configuration and startup of the Sawtooth Lake Bond Family validator service that you installed in Installation.
Step 1: Customize the Config File for Your Environment¶
The configuration file,
txnvalidator.js, is located in the folder with the
sawtooth-core/validator/etc/. This file has a
number of sections, but you only need to configure the following entries:
- Required for all configurations
- Tells the validator which interface and ports to listen on
- Required only for NAT environments
- Provides the publicly accessible network address and ports
- Leave commented out if not needed
- NodeName: The name of your node on the validator network
- LedgerURL: The node or nodes with which your node communicates with directly
To configure your validator node:
- Run the following commands to rename the provided example config file and open it in a text editor:
% cd sawtooth-core/validator/etc/ % mv txnvalidator.js.example txnvalidator.js % vi txnvalidator.js
- Modify the Listen entry of the configuration file if necessary.
- The defaults will work for most cases
- Default entry:"Listen" : [ "0.0.0.0:5500/UDP gossip", "0.0.0.0:8800/TCP" ],
Modify the Endpoint entry to reflect your network environment. This section must be filled in correctly in order to proceed. This section tells the other nodes in the network how to communicate with you rnode.
Do not proceed without completing this step!
- Host: This is the publicly addressable IP address or FQDN of your validator node.
- Port: This port must allow UDP traffic to reach the UDP port configured in the Listen entry of the config file.
- HttpPort: This port must allow TCP traffic to reach the TCP/Http port configured in the Listen entry of the config file.
- NodeName: Modify the value of “NodeName” to match the correct value.
- LedgerUrl: This value will be provided to you. Example value:
- Technical note: this value is an array that can contain multiple IP addresses.
(Optional) Modify the https proxy setting:
If your device requires a proxy to communicate with other nodes, then perform this step:
- Modify the value of “HttpsProxy” to the IP address or value supplied by your network administrator.
Save the config file.
Do not uncomment any lines that make up the internal documentation or explanatory notes within the config file.