Bytecoin daemon configuration file

From Bytecoin Wiki
Jump to: navigation, search

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


Command line options:

  --help     Produce help message  
  --version     Output version information  
  --os-version     Specify data directory  
  --data-dir arg  
  --config-file arg(=bytecoin.conf)     Specify configuration file  

  

Command line options and settings options:

  --log-file arg  
  --log-level arg (=0)  
  --no-console     Disable daemon console commands  
  --rpc-bind-ip arg (=127.0.0.1)  
  --rpc-bind-port arg (=8081)  
  --p2p-bind-ip arg (=0.0.0.0)     Interface for p2p network protocol  
  --p2p-bind-port arg (=8080)     Port for p2p network protocol  
  --p2p-external-port arg (=0)     External port for p2p network protocol (if port forwarding used with NAT)  
  --allow-local-ip     Allow local ip add to peer list, mostly in debug purposes  
  --add-peer arg     Manually add peer to local peerlist  
  --add-priority-node arg     Specify list of peers to connect to and attempt to keep the connection open  
  --seed-node arg     Connect to a node to retrieve peer addresses, and disconnect  
  --hide-my-port     Do not announce yourself as peerlist candidate  
  --extra-messages-file arg     Specify file for extra messages to include into coinbase transactions  
  --start-mining arg     Specify wallet address to mining for  
  --mining-threads arg     Specify mining threads count  

  

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

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 "bytecoin.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=8081
p2p-bind-ip=0.0.0.0 
p2p-bind-port=8080
p2p-external-port=9000
allow-local-ip=yes
add-peer=1.1.1.1:343
add-peer=1.1.1.2:343
add-peer=1.1.1.3:343
seed-node=2.2.2.2:3124 
seed-node=2.2.2.2:3124
hide-my-port=no
start-mining=21D35quxec71111111111111111111111111...11111111111111111111111111116Q5tCH
mining-threads=7
Personal tools
Namespaces

Variants
Actions
Navigation
Tools