Daemon Config Manual

Daemon config file

Qwertycoind can accept settings through a configuration file. This is the output of daemon’s help command on acceptable parameters:

all of the command line options can be defined through the configuration file.

Command line options:
  –helpProduce help message
  –versionOutput version information
  –os-version
  –data-dir argSpecify data directory
  –config-file arg(=qwertycoin.conf)Specify configuration file
Command line options and settings options:
  –log-file arg
  –log-level arg (=0)
  –no-consoleDisable daemon console commands
  –rpc-bind-ip arg (=127.0.0.1)
  –rpc-bind-port arg (=8197)
  –p2p-bind-ip arg (=0.0.0.0)Interface for p2p network protocol
  –p2p-bind-port arg (=8196)Port for p2p network protocol
  –p2p-external-port arg (=0)External port for p2p network protocol (if port forwarding used with NAT)
  –allow-local-ipAllow local ip add to peer list, mostly in debug purposes
  –add-peer argManually add peer to local peerlist
  –add-priority-node argSpecify list of peers to connect to and attempt to keep the connection open
  –add-exclusive-node argSpecify list of peers to connect to and attempt to keep the connection open
  –seed-node argConnect to a node to retrieve peer addresses, and disconnect
  –hide-my-portDo not announce yourself as peerlist candidate
  –extra-messages-file argSpecify file for extra messages to include into coinbase transactions
  –start-mining argSpecify wallet address to mining for
  –mining-threads argSpecify mining threads count

If a parameter is defined in the config and was also indicated in the command line, two behaviors are possible. If the parameter accepts one value only (e.g., rpc-bind-ip), the command line value will be used, since it has a higher priority. If the parameter accepts several values (e.g., add-priority-node), then command line and configuration file values will be merged.

By default config file’s name is “qwertycoin.conf”, which is located in the binaries folder. However, you may adjust the destination to the file via “–config-file” option in the command line.

If some of the options are not defined in the config, the default values will be applied. Here’s the example of a possible configuration file:

log-level=4
no-console=yes

rpc-bind-ip=0.0.0.0
rpc-bind-port=8197
p2p-bind-ip=0.0.0.0
p2p-bind-port=8196
p2p-external-port=81960

allow-local-ip=yes

add-peer=1.1.1.1:8196
add-peer=1.1.1.2:8196
add-peer=1.1.1.3:8196

seed-node=2.2.2.2:8197
seed-node=2.2.2.2:8197

hide-my-port=no

start-mining=QWC1L4aAh5i7cbB813RQpsKP6pHXT2ymrbQCwQnQ3DC4QiyuhBUZw8dhAaFp8wH1Do6J9Lmim6ePv1SYFYs97yNV2xvSbTGc7s
mining-threads=4