Right now the default config directory is hardcoded to ~/.mina-config
.
This will be fixed eventually. In the meantime, you can pass -config-directory
to the daemon to look there.
The daemon has many options. If you run mina daemon -h
, it will explain what
they are.
The daemon will look for a $CONF_DIR/daemon.json
on startup. That file should
be a single JSON object containing the field daemon: {...}
. These settings
are overridden by their corresponding command-line flags. See mina daemon -h
for more information about them.
These flags are supported in the daemon
object of the config file:
client-port
intlibp2p-port
intrest-port
intblock-producer-key
private-key-fileblock-producer-pubkey
public-key-stringblock-producer-password
stringcoinbase-receiver
public-key-stringrun-snark-worker
public-key-stringsnark-worker-fee
intpeers
string list. This does not get overridden by-peer
arguments. Instead,-peer
arguments are added to this list.work-selection
seq|rand Choose work sequentially (seq) or randomly (rand)
(default: seq)work-reassignment-wait
intlog-received-blocks
boollog-txn-pool-gossip
boollog-snark-work-gossip
boollog-block-creation
bool
The daemon will read some environment variables on startup.
CODA_CLIENT_TRUSTLIST
is a comma-separated list of CIDR masks, for example 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
would allow any client on an RFC1918 private network to control the daemon. This list can be edited with mina advanced client-trustlist
commands.
There are other environment variables, but they aren't documented yet.