-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.toml
More file actions
68 lines (47 loc) · 1.91 KB
/
config.toml
File metadata and controls
68 lines (47 loc) · 1.91 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
# unchained Configuration File
[net]
# Port to listen on for P2P connections
listen_port = 31000
peer_exchange = true
# Maximum number of peer connections (prevents resource exhaustion)
max_peers = 133337
# Connection timeout in seconds
connection_timeout_secs = 300
# Timeout for initial network sync in seconds
sync_timeout_secs = 1800
# The public IP address of this node, to be announced to other peers.
# This is essential for nodes running behind a NAT.
# Bootstrap nodes to connect to - add your seed nodes here for public deployment
bootstrap = [ "/ip4/34.51.223.169/udp/31000/quic-v1/p2p/12D3KooWKt5kcwVA6SkDUmMGfmr3ouS9ydhHHgYPzSzuYHuvrhJg",
"/ip4/34.174.37.168/udp/31000/quic-v1/p2p/12D3KooWJhgAAXunyAP7N4F3bJrp9kofgAsuapmXpofCzRb7ugUM",
"/ip4/35.202.180.181/udp/31000/quic-v1/p2p/12D3KooWJLSZi2KFZqKAw75rEm8TjGBhTpuZWpueXtAwZRbfAdwL",
"/ip4/35.195.5.126/udp/31000/quic-v1/p2p/12D3KooWHnSAm1zzKUMGUH96YDgKQ9eptjLGK1VLJ2KUv2XAx2ob",
"/ip4/34.174.127.124/udp/31000/quic-v1/p2p/12D3KooWLRWnLAT4QadiMEJd5dbeUJXN8ShSx8LGCrH4jN8p1AdG" ]
[p2p]
# Peer scoring and rate limiting constants
max_validation_failures_per_peer = 10000
peer_ban_duration_secs = 3600 # 1 hour
rate_limit_window_secs = 600
max_messages_per_window = 1000
[storage]
# rebuilding the app every time the node writes to its database.
path = "../blockchain_data"
[epoch]
# Duration of each epoch in seconds (timing only; does not affect consensus validation)
seconds = 222
[mining]
# Enable mining by default
enabled = true
# Heartbeat interval to keep connection fresh
heartbeat_interval_secs = 30
# Maximum mining attempts per epoch before moving to next epoch
# (alias for `max_attempts` in code)
max_mining_attempts = 1000000
[metrics]
# Optional – leave out to use the default "0.0.0.0:9100"
bind = "0.0.0.0:9100"
[orphan]
total_cap = 32768
per_height_cap = 64
ttl_secs = 300
height_cooldown_secs = 1