Skip to content

Commit

Permalink
docs/node/validator: Update config file for 23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amela committed Nov 27, 2023
1 parent dba6ae3 commit f6bbf9a
Showing 1 changed file with 23 additions and 71 deletions.
94 changes: 23 additions & 71 deletions docs/node/run-your-node/validator-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -174,79 +174,31 @@ of that machine.
To use this configuration, save it in the `/node/etc/config.yml` file:

```yaml title="/node/etc/config.yml"
##
# Oasis Node Configuration
#
# This file's contents are derived from the command line arguments found in the
# root command of the oasis-node binary. For more information, execute:
#
# oasis-node --help
#
# Settings on the command line that are separated by a dot all belong to the
# same nested object. For example, "--foo.bar.baz hello" would translate to:
#
# foo:
# bar:
# baz: hello
##

# Set this to where you wish to store node data. The node's artifacts
# should also be located in this directory.
datadir: /node/data

# Logging.
#
# Per-module log levels are defined below. If you prefer just one unified log
# level, you can use:
#
# log:
# level: debug
log:
level:
# Per-module log levels. Longest prefix match will be taken. Fallback to
# "default", if no match.
default: debug
tendermint: warn
tendermint/context: error
format: JSON
# By default logs are output to stdout. If you would like to output logs to
# a file, you can use:
#
# file: /var/log/oasis-node.log

# Genesis.
mode: validator
common:
data_dir: /node/data
log:
format: JSON
level:
cometbft: warn
cometbft/context: error
default: debug
consensus:
external_address: tcp://{{ external_ip }}:{{ port_a }}
listen_address: tcp://0.0.0.0:{{ port_a}}
validator: true # Node will attempt to register as a validator
genesis:
# Path to the genesis file for the current version of the network.
file: /node/etc/genesis.json

# Worker configuration.
worker:
registration:
# In order for the node to register itself, the entity.json of the entity
# used to provision the node must be available on the node.
file: /node/etc/genesis.json
p2p:
port: {{ port_b }}
registration:
addresses:
- {{ external_ip }}:{{ port_b }}
seeds:
- {{ seed_node_address }}
- {{ seed_node_address }}
registration:
entity: /node/etc/entity.json

# Consensus backend.
consensus:
# Setting this to true will mean that the node you're deploying will attempt
# to register as a validator.
validator: true

# Tendermint backend configuration.
tendermint:
core:
listen_address: tcp://0.0.0.0:26656

# The external IP that is used when registering this node to the network.
# NOTE: If you are using the Sentry node setup, this option should be
# omitted.
external_address: tcp://{{ external_ip }}:26656

# List of seed nodes to connect to.
# NOTE: You can add additional seed nodes to this list if you want.
p2p:
seed:
- "{{ seed_node_address }}"
```
## Starting the Oasis Node
Expand Down

0 comments on commit f6bbf9a

Please sign in to comment.