Skip to content

Commit

Permalink
docs: Migrate run-your-node chapters to use Oasis Core 23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed Nov 15, 2023
1 parent c7a21a4 commit cdce213
Showing 1 changed file with 50 additions and 48 deletions.
98 changes: 50 additions & 48 deletions docs/node/run-your-node/validator-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -330,63 +330,65 @@ To use this configuration, save it in the `/serverdir/etc/config.yml` file and p
# baz: hello
##

# Set this to where you wish to store node data. The node's artifacts
# should also be located in this directory.
datadir: /serverdir/node
# Setting this to true will mean that the node you're deploying will attempt
# to register as a validator.
mode: validator

# 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:
common:
# Set this to where you wish to store node data. The node's artifacts
# should also be located in this directory.
datadir: /serverdir/node

# Logging.
#
# file: /var/log/oasis-node.log
# Per-module log levels are defined below. If you prefer just one unified log
# level, you can use:
#
# log:
# level: debug
log:
format: JSON
level:
# Per-module log levels. Longest prefix match will be taken. Fallback to
# "default", if no match.
default: debug
cometbft: warn
cometbft/context: error
# 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

# Consensus backend.
consensus:
# CometBFT backend configuration.
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_address }}:26656

# Genesis.
genesis:
# Path to the genesis file for the current version of the network.
file: /serverdir/etc/genesis.json

# Worker configuration.
worker:
# Peer-to-peer.
p2p:
port: 9200
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.
entity: /serverdir/node/entity/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_address }}: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 }}"
addresses:
- "{{ external_address }}:9200"
# List of seed nodes to connect to.
# NOTE: You can add additional seed nodes to this list if you want.
seeds:
- "{{ seed_node_address }}"

# 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.
registration:
entity: /serverdir/node/entity/entity.json
```
#### Ensuring Proper Permissions
Expand Down

0 comments on commit cdce213

Please sign in to comment.