-
Notifications
You must be signed in to change notification settings - Fork 56
/
witnet.toml
127 lines (119 loc) · 6.42 KB
/
witnet.toml
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
[connections]
# Server address tells what local interface and port the Witnet node server should bind to.
# This will probably look like `0.0.0.0:21337` or `192.168.x.x:21337`, but it totally depends on your local network.
server_addr = "0.0.0.0:21337"
# Public address needs to match your *public* IP and port, assuming your router is configured to forward incoming
# connections to the local IP of the device the node is running. Failure to configure this setting will result in your
# node not receiving inbound connections (see: https://docs.witnet.io/try/run-a-node/#open-your-ports).
public_addr = "0.0.0.0:21337"
# List of bootstrap peer addresses. The first time that a node runs, it connects to some of these addresses and query
# them for a list of all the addresses they know. From that moment on, the addresses listed here are not given any
# preference over addresses that have been discovered in any way.
known_peers =[
"5.9.5.85:22339",
"5.9.20.188:22386",
"38.242.204.144:21333",
"45.130.104.29:21336",
"45.43.29.118:16",
"51.255.51.101:21337",
"51.255.51.101:21338",
"52.166.178.145:21337",
"52.166.178.145:22337",
"173.249.3.178:21337",
"66.94.112.65:21337",
"66.94.112.71:21337",
"85.208.51.169:21337",
"88.198.31.248:22380",
"89.58.11.231:21337",
"94.130.66.3:22378",
"103.219.154.96:21337",
"136.243.22.47:22339",
"144.76.57.252:22365",
"148.251.153.67:22387",
"154.53.51.17:21332",
"161.97.65.252:21337",
"162.55.233.238:22339",
"167.86.125.10:21332",
"173.249.3.178:22337",
"173.249.8.65:20337",
"173.249.8.65:21337",
"173.249.27.241:21337",
"173.249.63.214:21337",
"185.208.206.52:21333",
"193.26.159.13:21337",
"194.163.137.36:21333",
"195.201.164.199:22375",
"207.180.206.216:21333",
"209.126.13.170:21332",
"209.145.54.183:21333",
]
# How many peer connections to stablish before considering that is safe to decide what the best chain tip is, based on
# the beacons that those peers are announcing.
outbound_limit = 8
# Period for opening new peer connections while the current number of peers is lower than `outbound_limit`.
bootstrap_peers_period_seconds = 1
# Reject (tarpit) inbound connections coming from addresses that are alike (i.e. by default having the first 18 bits equal),
# so as to prevent sybil peers from monopolizing our inbound capacity.
reject_sybil_inbounds = true
[storage]
# Path of the folder where RocksDB storage files will be written to.
db_path = ".witnet/storage"
[jsonrpc]
# Enables or disables the JSON-RPC server altogether. This is needed for using the CLI methods of the node.
enabled = true
# The addresses (IP and port) which the JSON-RPC server binds to.
# WARNING: these should be kept to a local, private address (e.g. 127.0.0.1) to prevent any device in your local network
# (and potentially, the internet) from messing with your JSON-RPC server.
# JSON-RPC over plain TCP (required for CLI usage). Set `enabled` above to `false` to disable.
tcp_address = "127.0.0.1:21338"
# JSON-RPC over HTTP. Remove the line to disable it.
http_address = "127.0.0.1:21339"
# JSON-RPC over WebSockets. Remove the line to disable it.
ws_address = "127.0.0.1:21340"
[ntp]
# Period for checking the local system clock drift against a public NTP server.
update_period_seconds = 1024
[mining]
# Enable or disable mining and participation in resolving data requests.
enabled = true
# Limit the number of retrievals that the node will perform during a single epoch. Due to the locking, highly
# side-effected nature of performing HTTP GET requests, a limit needs to be enforced on the number of retrievals that
# we are willing to perform by unit of time.
# Raising this limit too high may make the node unresponsive to time-critical events, which could potentially lead to
# desynchronization, forking or slashing.
# This is assumed to be a safe default and it should never cause any node to refrain from participating in data requests
# for which it was eligible.
data_request_max_retrievals_per_epoch = 30
# Limit the number of milliseconds that the node is willing to wait for a data source in from data request to response.
data_request_timeout_milliseconds = 2000
# Path for the `genesis_block.json` file that contains the initial wit allocations that need to be built into the first
# block in the block chain.
genesis_path = ".witnet/config/genesis_block.json"
# `mint_external_address` and `mint_external_percentage` enable splitting the mint reward between the node's
# own address and an "external" address, e.g. a the address of a wallet. `mint_external_percentage` indicates
# the percentage of the block rewards that will be assigned to `mint_external_address` (50% by default)
#mint_external_address = "twit1jqgf4rxjrgas3kdhj3t4cr3mg3n33m8zw0aglr"
#mint_external_percentage = 50
# Set a minimum fee you require before your node includes a value transfer transaction into a block
minimum_vtt_fee_nanowits = 1
[witnessing]
# Tells how strict or lenient to be with inconsistent data sources. Paranoid level is defined as percentage of
# successful retrievals over total number of retrieval transports. That is, if we have 3 proxies in addition to the
# default unproxied transport (4), and we set the paranoid percentage to 51 (51%), the node will only from commit to
# requests in which "half plus one" of the data sources are in consensus (3 out of 4). For the typical setup in which
# only 1 proxy is used (e.g. the SOCKS5 endpoint from a local Tor client node), 51 (51%) results in a "fully paranoid"
# behavior, i.e. the node will only commit if all data sources are consistent.
paranoid_percentage = 51
# Add URLs here to be used as proxies when performing data retrieval. This allows retrieving data sources through
# different transports so as to ensure that the data sources are consistent and we are taking as small of a risk as
# possible when committing to specially crafted data requests that may be potentially ill-intended.
# The currently supported proxy protocols are HTTP, HTTPS, SOCKS4 (with and without authentication) and SOCKS5 (with and
# without authentication)
proxies = []
[log]
# Logging level, i.e. from more verbose to quieter: "trace" > "debug" > "info" > "warn" > "error" > "none"
level = "info"
[wallet]
# The address (IP and port) of a Witnet node's JSON-RPC server. This should normally match `json_rpc.server_address`.
# If more than one address is provided, the wallet will choose one at random.
node_url = "127.0.0.1:21338"