-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathckb-miner.toml.j2
More file actions
45 lines (37 loc) · 1.55 KB
/
Copy pathckb-miner.toml.j2
File metadata and controls
45 lines (37 loc) · 1.55 KB
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
# Config generated by `ckb init --chain dev`
data_dir = "{{ ckb_miner_data_dir | default(ckb_data_dir) }}"
[chain]
{# Choose the kind of chains to run, possible values: #}
{# - { file = "specs/dev.toml" } #}
{# - { bundled = "specs/testnet.toml" } #}
{# - { bundled = "specs/mainnet.toml" } #}
spec = {{ ckb_chain_spec }}
[logger]
filter = "{{ ckb_miner_logger_filter | default("info") }}"
color = {{ ckb_miner_logger_color | default("true") }}
log_to_file = {{ ckb_miner_logger_log_to_file | default("true") }}
log_to_stdout = {{ ckb_miner_logger_log_to_stdout | default("true") }}
[sentry]
# set to blank to disable sentry error collection
dsn = "{{ ckb_miner_sentry_dsn | default("") }}"
# if you are willing to help us to improve,
# please leave a way to contact you when we have troubles to reproduce the errors.
# org_contact = "{{ ckb_miner_sentry_org_contact | default() }}"
[miner.client]
rpc_url = "http://{{ ckb_miner_rpc_url | default("127.0.0.1:8114") }}"
block_on_submit = {{ ckb_miner_block_on_submit | default("true") }}
# block template polling interval in milliseconds
poll_interval = {{ ckb_miner_poll_interval | default("1000") }}
#{% if ckb_miner_workers is defined %}
# {% for worker in ckb_miner_workers %}
# [[miner.workers]]
# worker_type = "{{ worker.worker_type }}"
# delay_type = "{{ worker.delay_type }}"
# value = {{ worker.value }}
# {% endfor %}
#{% else %}
[[miner.workers]]
worker_type = "Dummy"
delay_type = "Constant"
value = 1000
#{% endif %}