From 8d7e83061c4cdfe0c6cd6c7559f7d206a770303c Mon Sep 17 00:00:00 2001 From: ethan1844 <96821439+ethan1844@users.noreply.github.com> Date: Fri, 31 May 2024 10:30:49 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=2026296?= =?UTF-8?q?ebf7c6a7c71474762f3bd336b8ad1ad3283=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- architecture/network/index.html | 325 -------------------- developers/official-public-nodes/index.html | 259 ---------------- index.html | 2 +- releases/history/index.html | 191 ++++++++---- search/search_index.json | 2 +- sitemap.xml | 112 +++---- sitemap.xml.gz | Bin 724 -> 704 bytes 7 files changed, 180 insertions(+), 711 deletions(-) delete mode 100644 architecture/network/index.html delete mode 100644 developers/official-public-nodes/index.html diff --git a/architecture/network/index.html b/architecture/network/index.html deleted file mode 100644 index 1c66a764..00000000 --- a/architecture/network/index.html +++ /dev/null @@ -1,325 +0,0 @@ - - - - - - - - Tron Network Instructure - Java Tron - - - - - - - - - - - - - - -
- - -
- -
-
- -
-
- -
-
- -

Tron Network Instructure

-

Tron network uses Peer-to-Peer(P2P) network instructure, all nodes status equal. There are three types of node: SuperNode, FullNode, SolidityNode. SuperNode produces blocks, FullNode synchronizes blocks and broadcasts transactions, SolidityNode synchronizes solidified blocks. Any device that deploy the java-tron code can join Tron network as a node.

-

image

-

SuperNode

-

Super Representative(abbr: SR) is the block producer in TRON network, there are 27 SRs. They verify the transactions and write the transactions into the blocks in turn. The super Representatives' information is public to everyone in Tron network. The best way to browse is using Tronscan.

-

Recommended Hardware Configuration:

-
minimum requirement:
-CPU: 16 cores, RAM: 32G, Bandwidth: 100M, Disk: 1T
-Recommended requirement:
-CPU: > 64 cores RAM: > 64G, Bandwidth: > 500M, Disk: > 2T
-
-

FullNode

-

FullNode has the complete block chain data, can update data in real time. It can broadcast the transactions and provide api service.

-

Recommended Hardware Configuration:

-
minimum requirement:
-CPU: 16 cores, RAM: 32G, Bandwidth: 100M, Disk: 1T
-Recommended requirement:
-CPU: > 32 cores RAM: > 48G, Bandwidth: > 500M, Disk: > 2T
-
-

SolidityNode

-

SolidityNode only synchronize solidified blocks data from the fullNode it specifies, It also provide api service.

-
-

NOTE: SolidityNode is deprecated. Now a FullNode supports all RPCs of a SolidityNode. -New developers should deploy FullNode only.

-
-

Recommended Hardware Configuration:

-
minimum requirement:
-CPU: 16 cores, RAM: 32G, Bandwidth: 100M, Disk: 1T
-Recommended requirement:
-CPU: > 32 cores RAM: > 48G, Bandwidth: > 500M, Disk: > 2T
-
-

MainNet, TestNet and PrivateNet

-

MainNet, TestNet, PrivateNet all use the same code, only the node start configuration varies.

-

MainNet

-

MainNet configuration: main_net_config.conf

-

TestNet

-

TestNet configuration: test_net_config.conf

-

PrivateNet

-

Preconditions

-
    -
  • at least two accounts generate an account
  • -
  • at least one SuperNode to produce blocks
  • -
  • deploy serval FullNodes to synchronize blocks and broadcast transactions
  • -
  • SuperNode and FullNode comprise the private network
  • -
-

Deploy the SuperNode

-
    -
  1. -

    download private_net_config.conf

    -
    > wget https://raw.githubusercontent.com/tronprotocol/tron-deployment/master/private_net_config.conf
    -
    -
  2. -
  3. -

    add your private key in localwitness

    -
  4. -
  5. set genesis.block.witnesses as the private key's corresponding address
  6. -
  7. set p2p.version, any positive integer except 11111
  8. -
  9. set for first SR needSyncCheck = false, others can be set true
  10. -
  11. set node.discovery.enable = true
  12. -
  13. -

    run the following command

    -
    > nohup java -Xmx6g -XX:+HeapDumpOnOutOfMemoryError -jar FullNode.jar -c private_net_config.conf </dev/null &>/dev/null &
    -
    -command line parameters introduction:
    ---witness: start witness function, i.e.: --witness YOUR_PRIVATE_KEY_IN_HEX
    ---log-config: specify the log configuration file path, i.e.: --log-config logback.xml
    --c: specify the configuration file path, i.e.: -c config.conf
    -
    -
  14. -
-

The usage of the log file:

-

You can change the level of the module to control the log output. The default level of each module is INFO, for example: only print the message with the level higher than warn:

-
<logger name="net" level="WARN"/>
-
-

The parameters in configuration file that need to modify:

-

localwitness:

-
-

image

-
-

witnesses:

-
-

image

-
-

version:

-
-

image

-
-

enable:

-
-

image

-
-

Deploy the FullNode

-

Same as above except for:

-
    -
  1. set seed.node.ip.list to SR's ip and port
  2. -
  3. set needSyncCheck true
  4. -
  5. modify listen.port, http.port and rpc.port if SuperNode and FullNode are deployed on the same server.
  6. -
  7. do not need a private key in localwitness
  8. -
-

The parameters in configuration file that need to modify:

-

ip.list:

-
-

image

-
-

p2p.version:

-
-

image

-
-

genesis.block:

-
-

image

-
-

needSyncCheck:

-
-

image

-
-

node.discovery.enable:

-
-

image

-
- -
-
- -
-
- -
- -
- -
- - - - GitHub - - - - - -
- - - - - - - - - diff --git a/developers/official-public-nodes/index.html b/developers/official-public-nodes/index.html deleted file mode 100644 index ac2bfc89..00000000 --- a/developers/official-public-nodes/index.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - - - Official Public Nodes - Java Tron - - - - - - - - - - - - - - -
- - -
- -
-
- -
-
- -
-
- -

Official Public Nodes

-

FullNodes

-
    -
  • gRPC port: 50051/tcp
  • -
  • P2P network port: 18888/udp, 18888/tcp
  • -
  • HTTP API port : 8090/tcp
  • -
-
3.225.171.164
-52.53.189.99
-18.196.99.16
-34.253.187.192
-18.133.82.227
-35.180.51.163
-54.252.224.209
-18.231.27.82
-52.15.93.92
-34.220.77.106
-15.207.144.3
-13.124.62.58
-15.222.19.181
-18.209.42.127
-3.218.137.187
-34.237.210.82
-13.228.119.63
-18.139.193.235
-18.141.79.38
-18.139.248.26
-
-

SolidityNodes(deprecated)

-
    -
  • gRPC port: 50051/tcp
  • -
  • HTTP API port : 8091/tcp
  • -
-
3.225.171.164
-52.53.189.99
-18.196.99.16
-34.253.187.192
-18.133.82.227
-35.180.51.163
-54.252.224.209
-18.231.27.82
-52.15.93.92
-34.220.77.106
-15.207.144.3
-13.124.62.58
-35.182.229.162
-18.209.42.127
-3.218.137.187
-34.237.210.82
-13.228.119.63
-18.139.193.235
-18.141.79.38
-18.139.248.26
-
- -
-
- -
-
- -
- -
- -
- - - - GitHub - - - - - -
- - - - - - - - - diff --git a/index.html b/index.html index 538001f6..914c42d1 100644 --- a/index.html +++ b/index.html @@ -224,5 +224,5 @@

Welcome to the Java-tron user manu diff --git a/releases/history/index.html b/releases/history/index.html index 172bd9ea..c04f5bde 100644 --- a/releases/history/index.html +++ b/releases/history/index.html @@ -129,10 +129,36 @@
  • History