forked from gear-tech/gear
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ethexe.example.toml
More file actions
205 lines (170 loc) · 7.54 KB
/
Copy path.ethexe.example.toml
File metadata and controls
205 lines (170 loc) · 7.54 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
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
### General various node and execution parameters.
[node]
# Base directory for all node-related subdirectories.
# Default locations:
# - Linux: `$XDG_DATA_HOME/ethexe` or `$HOME/.local/share/ethexe`
# - macOS: `$HOME/Library/Application Support/com.Gear.ethexe`
# - Windows: `%APPDATA%\Gear\ethexe\data`
# base = "/path/to/ethexe" # (optional, default location used if not provided).
# Flag to use temporary directory for database.
# (optional, default: false).
# tmp = false
# Flag to run node in development mode.
# (optional, default: false).
# dev = false
# Number of pre-funded accounts to generate in dev mode.
# (optional, must be non-zero u32, default: 10).
# pre-funded-accounts = 10
# Public key of the validator, if node should act as one.
# Provided in the format of 33-byte hex string:
# - `yParityCompressed`, compressed `publicKeyY`,
# `0x02` if `publicKeyY` is even, `0x03` if `publicKeyY` is odd
# [1 byte]
# - `publicKeyX`, x-coordinate of the public key on secp256k1 curve
# [32 bytes]
# Example of converting secp256k1 private key 0x01..01 to compressed public key:
# ```shell
# $ cargo run --package ethexe-cli --release -- key insert 0x0101010101010101010101010101010101010101010101010101010101010101
# ```
# Output:
# ```
# Using default params file: ./.ethexe.toml
# Public key: 0x031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f
# Ethereum address: 0x1a642f0e3c3af545e7acbd38b07251b3990914f1
# ```
# (optional, default: None).
# validator = "0x031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f"
# Public key of the validator session, if node should act as one.
# Provided in the format of 33-byte hex string:
# - `yParityCompressed`, compressed `publicKeyY`,
# `0x02` if `publicKeyY` is even, `0x03` if `publicKeyY` is odd
# [1 byte]
# - `publicKeyX`, x-coordinate of the public key on secp256k1 curve
# [32 bytes]
# Example of converting secp256k1 private key 0x01..01 to compressed public key:
# ```shell
# $ cargo run --package ethexe-cli --release -- key insert 0x0101010101010101010101010101010101010101010101010101010101010101
# ```
# Output:
# ```
# Using default params file: ./.ethexe.toml
# Public key: 0x031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f
# Ethereum address: 0x1a642f0e3c3af545e7acbd38b07251b3990914f1
# ```
# (optional, default: None).
# validator-session = "0x031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f"
# Max allowed height diff from head for sync directly from Ethereum.
# (optional, must be non-zero u32, default: 100_000).
# max-depth = 100_000
# Number of worker threads to use in tokio runtime.
# (optional, must be non-zero usize, default: number of CPU cores).
# worker-threads = 8
# Number of blocking threads to use in tokio runtime.
# (optional, must be non-zero usize, default: 512 in current implementation of tokio runtime).
# blocking-threads = 512
# Number of threads to use for chunk processing.
# (optional, must be non-zero usize, default: 16).
# chunk-processing-threads = 16
# Block gas limit for the node.
# (optional, max block gas limit: 9_000_000_000_000, default: 4_000_000_000_000).
# block-gas-limit = 4_000_000_000_000
# Number of blocks that must pass before applying canonical (Ethereum) events.
# NOTE: Customize this parameter only for development purposes. In production, your node
# may fail to reach consensus with other nodes if this value is changed.
# (optional, default: 16)
# canonical-quarantine = 16
# Do P2P database synchronization before the main loop.
# (optional, default: false).
# fast-sync = false
# Threshold for producer to submit commitment despite of no transitions.
# (optional, must be non-zero u32, default: 500).
# chain-deepness-threshold = 500
##########################################################################################
### Ethereum-specific parameters.
[ethereum]
# Ethereum RPC endpoint.
# (optional, default: ws://localhost:8545).
# rpc = "ws://localhost:8545"
# Ethereum Beacon RPC endpoint.
# (optional, default: http://localhost:8545).
# beacon-rpc = "http://localhost:8545"
# Ethereum router contract address.
# (optional).
# router = "0x0000000000000000000000000000000000000000"
# Ethereum block time in seconds.
# (optional, default: 12).
# block-time = 12
##########################################################################################
### Network service related parameters.
[network]
# Network pubkey of the node. If not provided, tries to fetch one from .net directory, in case of absence - generates and stores new random one.
# Provided in the format of 33-byte hex string:
# - `yParityCompressed`, compressed `publicKeyY`,
# `0x02` if `publicKeyY` is even, `0x03` if `publicKeyY` is odd
# [1 byte]
# - `publicKeyX`, x-coordinate of the public key on secp256k1 curve
# [32 bytes]
# Example of converting secp256k1 private key 0x01..01 to compressed public key:
# ```shell
# $ cargo run --package ethexe-cli --release -- key --net insert 0x0101010101010101010101010101010101010101010101010101010101010101
# ```
# Output:
# ```
# Using default params file: ./.ethexe.toml
# Public key: 0x031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f
# Peer ID: 16Uiu2HAmEWQnHq2jLKJypwVnVoQeFCULuyop6atvq2eWjYSUjzNi
# ```
# (optional, default: None).
# key = "0x031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f"
# Predefined bootnodes addresses to connect to.
# Each address should be in multiaddr format (https://docs.libp2p.io/concepts/fundamentals/addressing/).
# (optional, default: empty list).
# bootnodes = [] # ["/ip4/{host}/udp/{port}/quic-v1/p2p/{peer_id}"]
# Externally exposed network addresses of the node.
# Each address should be in multiaddr format (https://docs.libp2p.io/concepts/fundamentals/addressing/).
# (optional, default: empty list).
# public-addr = []
# Addresses to listen for incoming connections.
# Each address should be in multiaddr format (https://docs.libp2p.io/concepts/fundamentals/addressing/).
# If an empty list is passed, all IPv6 and IPv4 interfaces will be listened to.
# (optional, default: empty list).
# listen-addr = [] # ["/ip6/::/udp/{port}/quic-v1", "/ip4/0.0.0.0/udp/{port}/quic-v1"]
# Default network port.
# (optional, default: 20333).
# port = 20333
# Flag to disable network service.
# (optional, default: false).
# no-network = false
##########################################################################################
### Ethexe RPC service hosting parameters.
[rpc]
# Port to expose RPC service.
# (optional, default: 9944).
# port = 9944
# Flag to expose RPC service on all interfaces.
# (optional, default: false).
# external = false
# CORS policy for RPC service.
# Possible values:
# - `cors = "*"` or `cors = "all"` to allow all origins
# - `cors = ["http://example.com", "https://example.org"]` to allow specific origins
# (optional, default: ["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*", "https://127.0.0.1:*"]).
# cors = ["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*", "https://127.0.0.1:*"]
# Flag to disable RPC service.
# (optional, default: false).
# no-rpc = false
##########################################################################################
### Prometheus (metrics) service parameters.
[prometheus]
# Node name in prometheus monitoring.
# (optional, default: DevelopmentNode).
# name = "DevelopmentNode"
# Port to expose prometheus metrics.
# (optional, default: 9635).
# port = 9635
# Flag to expose prometheus metrics on all interfaces.
# (optional, default: false).
# external = false
# Flag to disable prometheus metrics.
# (optional, default: false).
# no-prometheus = false