This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
config-stage.template
178 lines (178 loc) · 9.1 KB
/
config-stage.template
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
%% -*- erlang -*-
[
{kernel,
[
%% force distributed erlang to only run on localhost
{inet_dist_use_interface, {127,0,0,1}}
]},
{lager,
[
{suppress_supervisor_start_stop, true},
{log_root, "/var/log/miner"},
{crash_log, "crash.log"},
{colored, true},
{metadata_whitelist, [poc_id]},
{handlers,
[
{lager_file_backend, [{file, "console.log"}, {level, info},
{formatter, lager_default_formatter},
{formatter_config, [date, " ", time, " ", {pterm, ospid, <<"NOPID">>},
" [",severity,"] ",
pid, "@", module, ":", function, ":", line, " ",
message, "\n"]}]},
{lager_file_backend, [{file, "error.log"}, {level, error}]}
]}
]},
{libp2p,
[
{use_dns_for_seeds, true},
{seed_dns_cname, "seed.helium.io"},
{seed_config_dns_name, "_seed_config.helium.io"},
{similarity_time_diff_mins, 30},
{random_peer_pred, fun miner_util:random_val_predicate/1},
{ip_confirmation_host, "https://ifconfig.co"},
{node_aliases,
[
{"/p2p/112qB3YaH5bZkCnKA5uRH7tBtGNv2Y5B4smv1jsmvGUzgKT71QpE", "/ip4/52.8.80.146/tcp/2154"},
{"/p2p/112ewJNEUfSg3Jvo276tMjzFC2JzmmZcJJ32CWz2fzYqbyCMMTe1", "/ip4/54.219.236.122/tcp/2154"},
{"/p2p/1124CJ9yJaHq4D6ugyPCDnSBzQik61C1BqD9VMh1vsUmjwt16HNB", "/ip4/54.176.88.149/tcp/2154"},
{"/p2p/11263KvqW3GZPAvag5sQYtBJSjb25azSTSwoi5Tza9kboaLRxcsv", "/ip4/54.193.165.228/tcp/2154"},
{"/p2p/11w77YQLhgUt8HUJrMtntGGr97RyXmot1ofs5Ct2ELTmbFoYsQa", "/ip4/44.238.156.97/tcp/2154"},
{"/p2p/11afuQSrmk52mgxLu91AdtDXbJ9wmqWBUxC3hvjejoXkxEZfPvY", "/ip4/13.37.13.24/tcp/2154"}
]}
]},
{blockchain,
[
{snap_source_base_url, "{{base_url}}"},
{fetch_latest_from_snap_source, true},
{honor_quick_sync, true},
{quick_sync_mode, blessed_snapshot},
{blessed_snapshot_block_height, {{blessed_block}}},
{blessed_snapshot_block_hash,
{{blessed_block_hash}}},
{listen_addresses, ["/ip4/0.0.0.0/tcp/44158"]},
{key, {ecc, [{key_slot, {{key_slot}}}, {onboarding_key_slot, {{onboarding_key_slot}}}, {bus, "{{i2c_bus}}"}, {address, 16#{{i2c_address}}}]}}, %% don't make this the last line in the stanza because sed and keep it on one line
{base_dir, "/var/data"},
{onboarding_dir, "/mnt/uboot"},
{num_consensus_members, 16},
{seed_nodes, "/ip4/18.217.27.26/tcp/2154,/ip4/35.161.222.43/tcp/443,/ip4/99.80.158.114/tcp/2154,/ip4/3.66.43.167/tcp/443,/ip4/52.220.121.45/tcp/2154,/ip4/54.207.252.240/tcp/443,/ip4/3.34.10.207/tcp/2154,/ip4/13.238.174.45/tcp/443"},
{peerbook_update_interval, 900000},
{max_inbound_connections, 6},
{outbound_gossip_connections, 6},
{gossip_version, 2},
{peerbook_allow_rfc1918, false},
{metadata_fun, fun miner_util:metadata_fun/0},
{relay_limit, 50},
{disable_gateway_cache, true},
{gw_cache_retention_limit, 0},
{gw_context_cache_max_size, 0},
{blocks_to_protect_from_gc, 4000}
]},
{relcast,
[
{db_open_opts,
[{total_threads, 4},
{max_background_jobs, 2},
{max_background_compactions, 2}
%% {max_background_flushes, 2}, % not sure if needed
]},
{defer_count_threshold, 30},
{defer_time_threshold, 1000}
]},
{rocksdb,
[{global_opts,
[
{max_open_files, 128},
{compaction_style, universal},
{memtable_memory_budget, 8388608}, % 8MB
{arena_block_size, 262144}, % 256kB
{write_buffer_size, 262144}, % 256kB
{db_write_buffer_size, 8388608}, % 8MB
{max_write_buffer_number, 10},
{keep_log_file_num, 5},
{max_log_file_size, 1048576}, %% keep log files 1mb or less
{log_file_time_to_roll, 86400} %% rotate logs once a day
]}
]},
{sibyl,
[
{validator_ignore_list, []},
{version_fn, fun miner:version/0},
{denylist_fn, fun miner_poc_denylist:check/1}
]},
{miner,
[
{denylist_keys, ["1SbEYKju337P6aYsRd9DT2k4qgK5ZK62kXbSvnJgqeaxK3hqQrYURZjL"]},
{denylist_type, github_release},
{denylist_url, "https://api.github.com/repos/helium/denylist/releases/latest"},
{jsonrpc_ip, {0,0,0,0}}, %% bind JSONRPC to localhost only
{jsonrpc_port, 4467},
{mode, gateway},
{gateway_and_mux_enable, true},
{gateways_run_chain, false}, %% if false, gateways will no longer follow the chain
{use_ebus, true},
{batch_size, 2500},
{curve, 'SS512'},
{block_time, 60000},
{late_block_timeout_seconds, 1800}, % fire a skip every 30 minutes
{hotfix_dir, "/opt/miner/hotfix"},
{update_dir, "/opt/miner/update"},
{api_base_url, "https://api.helium.io/v1"},
{election_interval, 30},
{radio_device, { {0,0,0,0}, 1680,
{0,0,0,0}, 31341} },
{default_routers, ["/p2p/11w77YQLhgUt8HUJrMtntGGr97RyXmot1ofs5Ct2ELTmbFoYsQa","/p2p/11afuQSrmk52mgxLu91AdtDXbJ9wmqWBUxC3hvjejoXkxEZfPvY"]},
{mark_mods, [miner_hbbft_handler]},
{stabilization_period, 50000},
{seed_validators, [
{"11tk4zzbyfMPYYHYda255ACoqfYFVdrUSoCWrCYfn8BoyuYrERK", "52.49.199.40"}, %% ireland
{"115PmCR6fpFihdjw626JXYdUEdzwjh66yoWzWkMvB9CRGEx1U6G", "3.132.190.192"}, %% ohio
{"11aZEJnSduAXG8r3r9vzw3QD5k1KWXUJSVc2SxmwxPBuNmMW6UY", "44.229.159.157"}, %% oregon
{"11yJXQPG9deHqvw2ac6VWtNP7gZj8X3t3Qb3Gqm9j729p4AsdaA", "3.38.70.101"}, %% seoul
{"11Gx2yPEmBGUrbHUiUWQs9vV7JDHQLZSddQs6e3WB2uvqSMUDBW", "54.251.77.229"}, %% singapore
{"1123BGjiBwxdTHHjEuvF5mTQpHWwy9KP1JbgS8N4UKUa3Q2ya1W6", "3.122.38.248"}, %% frankfurt1
{"11BL23u2PbpTjuCyHQ6n35xD5a1QyhyuepCJYrqLVgD3fFewkJ2", "18.228.115.118"}, %% saopaulo1
{"11EQ9yjSuqBG1yV73YL1YRSX4QVwdQiiF9MJ1Bqngf9JwS2TGBi", "13.237.155.172"}, %% sydney1
{"11pGEgAb8YhhFw64pxDLDsoaLQyQG1cijQjR1Ko6A2Q7EtwBcy9", "3.72.143.228"}, %% frankfurt2
{"112qiiykzk7kTrnxNwnzf2EUsG9qoFPHG4Mau5hNsok8dLGf8ufB", "52.30.1.39"}, %% ireland2
{"11fHGw18ySqmiBRhgBEXHS9xfSvBpmES5aeL1HNb5G79fQc67Ch", "3.137.92.200"}, %% ohio2
{"112LdZBP1vtz3gdhVPRuQYGx1fLuBP5nqFWcE4L1dYXdNiMJRdF6", "35.82.239.134"}, %% oregon2
{"11WUPL9y8pUfQg8wYvyJWbqEjnN7AzVGVWwHD8hmFFsXdaE3yh6", "18.228.158.83"}, %% saopaulo2
{"11Gn8cr7tNDVv7GSnuDpJAqEjnDWRWkfEzW8zph7EQ9rr8MLhPJ", "13.209.94.225"}, %% seoul2
{"112fVSokVAUxmD672gKbS86SuqKX3bTzu2SGNaGuq6vxESMGBqCN", "52.220.227.216"}, %% singapore2
{"112Go1gHKBNBjSJztRD1x9m4H9krFiawrU444VC6PbEiwmWvFAUu", "3.24.161.210"}, %% sydney2
{"11NeSZjVWK9SvXxfwaWc3vZU8df17TYbKQekywYktbUyow3efUm", "3.70.55.231"}, %% frankfurt3
{"11vBe5pfSxH5QoEgFMVedA631YMEeBHipktJ2nybDe1EjkiKRXo", "52.30.111.82"}, %% ireland3
{"112HUu9fVtpcNJtnnAwXTNPBPZjWZxV63angT5UJY529APS5hMDa", "3.13.130.184"}, %% ohio3
{"112mjDiAz72CFxkjxBgwieP1LxAhV8oadqHNP2AyaiQQom4VN27", "54.70.239.5"}, %% oregon3
{"11rfZwFwdDDtxYo34uYTXUKbkPhZofxJ2LbkduBZHPksHUsUdw8", "18.230.8.198"}, %% saopaulo3
{"11BgGQp83rWWE8PHimZQPYxwMVD3oQw9JaVW7u3EUom6toh9568", "13.125.32.225"}, %% seoul3
{"112fVGeUJf6aNc5z6d8rFDsgBnRj45BAxhdxaEVpQ58SGFJ1abk4", "13.215.75.202"}, %% singapore3
{"11FiQQ2dGuwRi3XAWfGboPwgxH7JiNzak8BfGWpJTJ3NXHG3N6i", "3.104.32.11"}, %% syndey3
{"112pcepAfZ8CWGFcRAq8hPP8dNcppRK8APSNfrKvqufyH3Keyhjb", "3.72.215.7"}, %% frankfurt4
{"112wJBZBZH34G2NZ8XQx8ZpFXAhZf5FUhyKwbobknkBraP9pH2j8", "52.210.14.128"}, %% ireland4
{"112hyDbnmq41LwyNynmSkcjoH414oEdANHiYduFygbLbJWBoLjsZ", "3.131.232.233"}, %% ohio4
{"112N96HhzTGGwVeCengwf7CUoGK73GgLquZskDvRzrTqSQvsU3rM", "52.89.130.114"}, %% oregon4
{"11Ka5aFf1heCuQLQWt3D2itZX89QJNetPHUeUdNcC55Jtp6SRaV", "54.207.131.103"}, %% saopaulo4
{"112iJa3Ckk34eFiWSfDUkLz12qwdcJS4V3794zgCw2rJDHi4naiL", "3.39.165.144"}, %% seoul4
{"112USfBeZqQwhQtgeTRwREauyxxFQdCw5eFw23GUa3eMqTRqyhXt", "13.215.29.4"}, %% singapore4
{"112q3CB7MsFpi7Y3JuiHzF9h2ndH88KeZ3LUL6juJwMdo4g4Lsoq", "13.211.55.217"} %% sydney4
]},
{reg_domains_file, "countries_reg_domains.csv"},
{frequency_data, #{'US915' => [903.9, 904.1, 904.3, 904.5, 904.7, 904.9, 905.1, 905.3],
'EU868' => [867.1, 867.3, 867.5, 867.7, 867.9, 868.1, 868.3, 868.5],
'EU433' => [433.175, 433.375, 433.575],
'CN470' => [486.3, 486.5, 486.7, 486.9, 487.1, 487.3, 487.5, 487.7 ],
'CN779' => [779.5, 779.7, 779.9],
'AU915' => [916.8, 917.0, 917.2, 917.4, 917.6, 917.8, 918.0, 918.2],
'AS923_1' => [923.2, 923.4, 923.6, 923.8, 924.0, 924.2, 924.4, 924.6],
'AS923_1B' => [922.0, 922.2, 922.4, 922.6, 922.8, 923.0, 923.2, 923.4],
'AS923_2' => [921.4, 921.6, 921.8, 922.0, 922.2, 922.4, 922.6, 922.8],
'AS923_3' => [916.6, 916.8, 917.0, 917.2, 917.4, 917.6, 917.8, 918.0],
'AS923_4' => [917.3, 917.5, 917.7, 917.9, 918.1, 918.3, 918.5, 918.7],
'KR920' => [922.1, 922.3, 922.5, 922.7, 922.9, 923.1, 923.3],
'IN865' => [865.0625, 865.4025, 865.985],
'RU864' => [864.1, 864.3, 864.5, 864.7, 864.9, 868.9, 869.1]}
}
]}
].