Configuration File
The JSON file given in argument to --config
, allows to configure
certain parameters of Mitten (in particular on the sandboxed network)
that are common to multiple runs.
Here is an example configuration files which sets all the possible fields. A detailed explanation for each one is given afterwards.
{
"chain": "SANDBOXED_TEZOS",
"proxies" : [
{ "node" : {"name" : "b1", "port" : 19771, "rpc_port" : 18731 },
"proxy_port" : 19781
},
{ "node" : {"name" : "b2", "port" : 19772, "rpc_port" : 18732 },
"proxy_port" : 19782,
"baker" : {
"secret_key" : "edsk37djhrngD2GrZxhyu8PMFqbjv66Ee3j1d1zNVGdnDzMAx29CUK",
"state_file" : "/tmp/baker_state_b2.json"
}
},
{ "node" : {"name" : "b3", "port" : 19773, "rpc_port" : 18733 },
"proxy_port" : 19783,
"baker" : { },
"accuser" : false,
"drift" : { "add" : 0.2, "mul" : 1.001 }
},
{ "node" : {"name" : "b4", "port" : 19774, "rpc_port" : 18734 },
"proxy_port" : 19784,
"baker" : { }
}
],
"data_dir": "/tmp/data",
"logs_dir": "/tmp/logs",
"timeout" : 60.0,
"libfaketime" : "/opt/local/lib/faketime/libfaketime.1.dylib",
"rpc_proxy" : false,
"delegate_selection" : "round_robin",
"committee" : 4,
"quorum" : 3,
"round_durations" : [1, 2],
"node_binary" : "/path/to/tezos-node",
"client_binary" : "/path/to/tezos-client",
"baker_binary" : "/path/to/tezos-baker-alpha",
"accuser_binary" : "/path/to/tezos-accuser-alpha"
}