-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathnode.toml.erb
72 lines (65 loc) · 1.5 KB
/
node.toml.erb
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
[Eth]
NetworkId = <%= @config["geth"]["network"]["id"] %>
SyncMode = "fast"
LightPeers = 20
DatabaseCache = 128
<%- if @Eth_Etherbase && @Eth_MinerThreads -%>
Etherbase = "<%= @Eth_Etherbase %>"
MinerThreads = <%= @Eth_MinerThreads %>
<% end -%>
GasPrice = 18000000000
EnablePreimageRecording = false
[Eth.Ethash]
CacheDir = "ethash"
CachesInMem = 2
CachesOnDisk = 3
DatasetDir = "/root/.ethash"
DatasetsInMem = 1
DatasetsOnDisk = 2
PowMode = 0
[Eth.TxPool]
NoLocals = false
Journal = "transactions.rlp"
Rejournal = 3600000000000
PriceLimit = 1
PriceBump = 10
AccountSlots = 16
GlobalSlots = 4096
AccountQueue = 64
GlobalQueue = 1024
Lifetime = 10800000000000
[Eth.GPO]
Blocks = 10
Percentile = 50
[Shh]
MaxMessageSize = 1048576
MinimumAcceptedPOW = 2e-01
[Node]
UserIdent = "<%= @Node_UserIdent %>"
DataDir = "<%= @Node_DataDir %>"
IPCPath = "<%= @Node_DataDir %>/geth.ipc"
HTTPHost = "0.0.0.0"
HTTPPort = <%= @Node_HTTPPort %>
HTTPCors = ["*"]
HTTPVirtualHosts = ["*"]
HTTPModules = ["db", "eth", "net", "web3", "personal", "web3"]
WSHost = "0.0.0.0"
WSPort = <%= @Node_WSPort %>
WSModules = ["net", "web3", "eth", "shh"]
[Node.P2P]
MaxPeers = 25
NoDiscovery = false
<%- unless @config["geth"]["network"]["public"] -%>
BootstrapNodes = []
BootstrapNodesV5 = []
<% end -%>
StaticNodes = []
TrustedNodes = []
ListenAddr = ":<%= @NodeP2P_DiscoveryAddr %>"
EnableMsgEvents = false
<%- if @Dashboard_Port || @Dashboard_Refresh -%>
[Dashboard]
Host = "0.0.0.0"
Port = <%= @Dashboard_Port %>
Refresh = <%= @Dashboard_Refresh %>
<% end -%>