forked from helium/miner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-val.config.src
54 lines (53 loc) · 1.53 KB
/
docker-val.config.src
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%% -*- erlang -*-
[
"config/sys.config",
{lager,
[
{log_root, "/var/data/log"},
{handlers,
[
{lager_file_backend, [{file, "console.log"}, {size, 52428800}, {level, info}]},
{lager_file_backend, [{file, "error.log"}, {size, 52428800}, {level, error}]}
]}
]},
{blockchain,
[
{listen_addresses, ["/ip4/0.0.0.0/tcp/2154"]},
{fetch_latest_from_snap_source, false},
{validation_width, "${VALIDATION_WIDTH}"},
{block_sync_batch_size, 10},
{block_sync_batch_limit, 100},
{max_inbound_connections, 32},
{snapshot_memory_limit, 4096},
{key, undefined},
{relay_limit, 100},
{blocks_to_protect_from_gc, 100000},
{base_dir, "/var/data"}
]},
{libp2p,
[
{random_peer_pred, fun miner_util:true_predicate/1},
{nat_map, #{ {"${NAT_INTERNAL_IP}", "${NAT_INTERNAL_PORT}"} => {"${NAT_EXTERNAL_IP}", "${NAT_EXTERNAL_PORT}"}}},
{max_tcp_connections, 2048}
]},
{relcast,
[
{pipeline_depth, 125}
]},
{miner,
[
{denylist_keys, undefined},
{jsonrpc_ip, {0,0,0,0}}, %% bind jsonrpc to host when in docker container
{mode, validator},
{rocksdb_cache_size, 32},
{rocksdb_write_buffer_size, 32},
%% these two now disable all the poc stuff
{use_ebus, false},
{radio_device, undefined},
%% dont perform regionalised checks in dev envs
%% we only realy need the params below if this file is changed to specify a radio device
%% as without one miner_lora is not started
%% including the params anyway in case someone needs it in this env
{region_override, 'US915'}
]}
].