snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

addd a command line argument to set config file

Open code-pangolin opened this issue 4 years ago • 1 comments

Motivation

add config file to easily manage node

Test Plan

cargo run -- -h

...
OPTIONS:
        --config <config-file>       Specify the config file path
...

cargo run -- --config config.toml

config file example:

# If true, the node will render a read-only display
display = false

# If  true, the node will not initialize the RPC server
norpc = false

# Specify the IP address and port of a peer to connect to
# connect = 

# Enables development mode, specify a unique ID for the local node
# dev = 132

# Specify this as a mining node, with the given miner address
# miner =  

# Specify the network of this node [default: 2]
network = 2

# Specify the IP address and port for the node server [default: 0.0.0.0:4132]
node = "0.0.0.0:4144"

# Specify the IP address and port for the RPC server [default: 0.0.0.0:3032]
rpc = "0.0.0.0:3044"

# Specify the password for the RPC server [default: pass]
rpc_password = "passss"

# Specify the username for the RPC server [default: root]
rpc_username = "roottt"

# Specify the verbosity of the node [options: 0, 1, 2, 3] [default: 2]
verbosity = 2

trial = true
sync = true

Related PRs

(Link your related PRs here)

code-pangolin avatar Dec 20 '21 08:12 code-pangolin

Admin: Please respond with "build this" in order to build this PR.

aleo-svc-exp avatar Aug 01 '22 23:08 aleo-svc-exp