Skip to content

Commit 374d67d

Browse files
authored
Merge branch 'tronprotocol:develop' into develop
2 parents 2caa9e7 + 711a691 commit 374d67d

File tree

6 files changed

+16
-10
lines changed

6 files changed

+16
-10
lines changed

conf/main_net_config.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ node {
180180
inactiveThreshold = 600 //seconds
181181

182182
p2p {
183-
version = 11111 # 11111: mainnet; 20180622: testnet
183+
version = 11111 # mainnet:11111; nile testnet:201910292
184184
}
185185

186186
active = [

conf/private_net_config_others.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ storage {
5151

5252
# this part of config is used to node discovery.
5353
node.discovery = {
54-
enable = true # you should set this entry value with true if you want your node can be discovered by other node.
54+
enable = true # you should set this entry value with true if you want to discover other nodes or be discovered by other nodes.
5555
persist = true # this entry is used to determined to whether storing the peers in the database or not.
5656
}
5757

@@ -96,7 +96,7 @@ node {
9696
isOpenFullTcpDisconnect = true
9797

9898
p2p {
99-
version = 1 # 11111: Mainnet; 20180622: Nile testnet; you can set other number when you deploy one private net, but the node must have the same number in some private net.
99+
version = 1 # mainnet:11111; nile testnet:201910292; other net: customized, should not be equal to 11111 or 201910292.
100100
}
101101

102102
active = [

conf/private_net_config_witness1.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ storage {
5151

5252
# this part of config is used to node discovery.
5353
node.discovery = {
54-
enable = true # you should set this entry value with true if you want your node can be discovered by other node.
54+
enable = true # you should set this entry value with true if you want to discover other nodes or be discovered by other nodes.
5555
persist = true # this entry is used to determined to whether storing the peers in the database or not.
5656
}
5757

@@ -96,7 +96,7 @@ node {
9696
isOpenFullTcpDisconnect = true
9797

9898
p2p {
99-
version = 1 # 11111: Mainnet; 20180622: Nile testnet; you can set other number when you deploy one private net, but the node must have the same number in some private net.
99+
version = 1 # mainnet:11111; nile testnet:201910292; other net: customized, should not be equal to 11111 or 201910292.
100100
}
101101

102102
active = [

conf/private_net_config_witness2.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ storage {
5151

5252
# this part of config is used to node discovery.
5353
node.discovery = {
54-
enable = true # you should set this entry value with true if you want your node can be discovered by other node.
54+
enable = true # you should set this entry value with true if you want to discover other nodes or be discovered by other nodes.
5555
persist = true # this entry is used to determined to whether storing the peers in the database or not.
5656
}
5757

@@ -96,7 +96,7 @@ node {
9696
isOpenFullTcpDisconnect = true
9797

9898
p2p {
99-
version = 1 # 11111: Mainnet; 20180622: Nile testnet; you can set other number when you deploy one private net, but the node must have the same number in some private net.
99+
version = 1 # mainnet:11111; nile testnet:201910292; other net: customized, should not be equal to 11111 or 201910292.
100100
}
101101

102102
active = [

metric_monitor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ docker-compose -f ./docker-compose/docker-compose-quick-start.yml up -d
1818
```
1919
It will start a TRON FullNode that connects to the Mainnet, along with Prometheus and Grafana services. Note that in [main_net_config.conf](../conf/main_net_config.conf), it contains the configuration below to enable metrics.
2020
```
21-
metrics{
21+
node.metrics{
2222
prometheus{
2323
enable=true
2424
port="9527"

metric_monitor/docker-compose/node-exporter.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ services:
66
ports:
77
- "9100:9100" # For metric collection
88
volumes:
9-
- "./:/host:ro,rslave"
9+
- "/proc:/host/proc:ro"
10+
- "/sys:/host/sys:ro"
11+
- "/:/rootfs:ro"
1012
command:
11-
- "--path.rootfs=/host"
13+
- "--path.procfs=/host/proc"
14+
- "--path.sysfs=/host/sys"
15+
- "--path.rootfs=/rootfs"
16+
- "--collector.filesystem.ignored-mount-points=^$"
17+
- "--collector.filesystem.ignored-fs-types=^$"
1218
restart: unless-stopped

0 commit comments

Comments
 (0)