-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
150 lines (142 loc) · 6.12 KB
/
config.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[node]
node_name = "YOUR_NODE_NAME"
# Fast sync allows a block to catch up quickly to the chain by downloading blocks in parallel and verifying their commits
fast_sync = true
# Specify what backend database to use (goleveldb|cleveldb)
db = "cleveldb"
# Specify the application database directory. This is always relative to the root directory of the app.
db_dir = "nodedata"
# Toggle async mode (default: false)
use_async = false
# Specify the log level for olfullnode. 0: Fatal, 1: Error, 2: Warning, 3: Info, 4: Debug, 5: Detail
loglevel = 4
# List of transaction tags to index in the database, allows them to be searched by the specified tags
index_tags = []
# Tells the indexer to index all available tags, IndexTags has precedence over IndexAllTags
index_all_tags = false
# List of services used by the current Node. Possible valued [broadcast, node, owner, query, tx]
services = ["broadcast", "node", "owner", "query", "tx", "eth"]
# the OwnerCredentials and RPCPrivateKey should be configured together
[node.Auth]
# Username and Password required to access owner services. Format ["Username:Password", "Username:Password"...]. if OwnerCredential not configured, anyone can create a public access token with a restful call at /token using the RPCPrivateKey
owner_credentials = []
# (ED25519 key) This private key will be used to generate a token for authentication through RPC Port; if not configured, anyone can access the SDK rpc port without authentication
rpc_private_key = ""
# the schedule for chain state rotation
[node.ChainStateRotation]
Recent = 100
Every = 100
Cycles = 100
[network]
rpc_address = "tcp://127.0.0.1:26600"
# RPC startup timeout in seconds
rpc_start_timeout = 2
# Main address for P2P connections
p2p_address = "tcp://127.0.0.1:26601"
# Address to advertise for incoming peers to connect to
external_p2p_address = ""
sdk_address = "http://127.0.0.1:26602"
[api]
[api.http]
# Enable the HTTP-RPC server
enabled = false
# HTTP-RPC server listening interface (default: "localhost")
addr = "localhost"
# HTTP-RPC server listening port (default: 8545)
port = 8545
# API's keep alive. Note: only very resource-constrained environments or servers in the process of shutting down should disable them (default: true)
keepalive = true
# API's offered over the HTTP-RPC interface
api = ["eth", "web3", "net"]
# Comma separated list of domains from which to accept cross origin requests (browser enforced)
corsdomain = []
# Comma separated list of virtual hostnames from which to accept requests (server enforced). Accepts '*' wildcard. (default: "localhost")
vhosts = ["localhost"]
[api.ws]
# Enable the WS-RPC server
enabled = false
# WS-RPC server listening interface (default: "localhost")
addr = "localhost"
# WS-RPC server listening port (default: 8546)
port = 8546
# API's offered over the WS-RPC interface
api = ["eth", "web3", "net"]
# Origins from which to accept websockets requests
origins = []
[p2p]
# List of seed nodes to connect to
seeds = ["[email protected]:38605"]
# Enables seed mode, which will make the node crawl the network looking for peers
seed_mode = false
# List of peers to maintain a persistent connection to
persistent_peers = ["42c5fdb66d9ec8a2613e2a929a3a36303052f3b6@sentry-1.oneledger.network:38605","f0fa1f685f9a6251e6b81f0c1342b75990c6b3de@sentry-2.oneledger.network:38605","fd13d348ad4e60ad4f68ae19321fc4962b2657c4@sentry-3.oneledger.network:38605","994c2fd23ef17eda29e9b6f4ab72b0c1a7c3215c@sentry-4.oneledger.network:38605"]
# Enable UPNP port forwarding
upnp = false
# Set true for strict address routability rules. If true, the node will fail to start if the given P2P address isn't routable'
addr_book_strict = false
# Max number of inbound peers
max_num_inbound_peers = 40
# Max number of outbound peers to connect to, excluding persistent peers
max_num_outbound_peers = 10
# Time to wait before flushing messages out on the connection in milliseconds
flush_throttle_timeout = 100
# Max size of a message packet payload, in bytes
max_packet_msg_payload_size = 1024
# Rate at which packets can be sent, in bytes/second
send_rate = 5120000
# Rate at which packets can be received, in bytes/second
recv_rate = 5120000
# Set true to enable the peer-exchange reactor
pex = false
# List of peer IDs to keep private (will not be gossiped to other peers)
private_peer_ids = []
# Toggle to disable guard against peers connecting from the same IP
allow_duplicate_ip = true
# In milliseconds
handshake_timeout = 20000
# In milliseconds
dial_timeout = 3000
[mempool]
recheck = true
broadcast = true
# Size of the mempool
size = 30000
cache_size = 60000
[consensus]
# Determines where consensus is logged (stdout|<filename>)
log_output = "consensus.log"
# Determines the verbosity of consensus logs
log_level = "main:info,state:info,*:error"
# All timeouts are in milliseconds
timeout_propose = 3000
timeout_propose_delta = 500
timeout_prevote = 1000
timeout_prevote_delta = 500
timeout_precommit = 1000
timeout_precommit_delta = 500
timeout_commit = 15000
# Make progress as soon as we have all precommits (as if TimeoutCommit = 0)
skip_timeout_commit = false
# Should this node create empty blocks
create_empty_blocks = true
# Interval between empty block creation in milliseconds
create_empty_blocks_interval = 15000
# Duration values in milliseconds
peer_gossip_sleep_duration = 100
peer_query_maj23_sleep_duration = 2000
[chain_driver]
# bitcoin chain types, mainnet, testnet3, or regtest
bitcoin_chain_type = ""
# ip address of bitcoin node
bitcoin_node_address = ""
# rpc port of bitcoin node
"bitcoin rpc_port" = "18332"
# rpc username of bitcoin node
bitcoin_rpc_username = ""
# rpc password of bitcoin node
bitcoin_rpc_password = ""
# token to use blockcypher APIs
blockcypher_token = ""
[ethereum_chain_driver]
# ethereum node connection url default: http://localhost:7545
connection = "https://mainnet.infura.io/v3/"