Configuration - zoobc/zoobc-core GitHub Wiki

Configuration file config.toml located in the root directory of zoobc-core contain many of variables that used as environtment. We use VIPER as loader that loaded when start the node. Some point is:

  • dbPath and dbName for database connection needed.
  • badgerDbPath and badgerDbName for badger connection needed.
  • configPath
  • nodeKeyFile
  • snapshotPath is path or directory of snapshot files.
  • peerPort is port that pointed for peer to peer connection
  • myAddress is address or IP for own node.
  • wellknownPeers is list of node addresses that you believe in.
  • apiRPCPort is port for RPC client connection supposted to be for wallet / explorer
  • maxAPIRequestPerSecond is request limit in second
  • apiHTTPPort is port that use in proxy mode, set 0 to disable and only enable in develop mode.
  • monitoringPort is port for grafana and only enable in develop mode.
  • cpuProfilingPort is port for CPU profiling and only enable in develop mode.
  • apiReqTimeoutSec is request timeout in second for grpc streaming mode.
  • ownerAccountAddress is account address in slip10 and hex format
  • smithing
  • proofOfOwnershipReqTimeoutSec
  • logLevels