• Stars
    star
    175
  • Rank 217,403 (Top 5 %)
  • Language
    Shell
  • Created over 6 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

tron main net conf

Scope of use

This script could be used on Linux/MacOS, but not on Windows. Just Support FullNode and SolidityNode.

Download and run script

wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh

Parameter Illustration

bash deploy_tron.sh --app [FullNode|SolidityNode] --net [mainnet|testnet|privatenet] --db [keep|remove|backup] --heap-size <heapsize>

--app	Optional, Running application. The default node is Fullnode and it could be FullNode or SolidityNode.
--net	Optional, Connecting network. The default network is mainnet and it could be mainnet, testnet.
--db	Optional, The way of data processing could be keep, remove and backup. Default is keep. If you launch two different networks, like from mainnet to testnet or from testnet to mainnet, you need to delete database.
--trust-node	Optional, It only works when deploying SolidityNode. Default is 127.0.0.1:50051. The specified gRPC service of Fullnode, like 127.0.0.1:50051 or 13.125.249.129:50051.
--rpc-port	Optional, Port of grpc. Default is 50051. If you deploy SolidityNode and FullNode on the same host,you need to configure different ports.
--commit	Optional, commitid of project.
--branch	Optional, branch of project.  Mainnet default is latest release and Testnet default is master.
--heap-size  Optional, jvm option: Xmx. The default heap-size is 0.8 * memory size.
--work_space  Optional, default is current directory.

Examples

Deployment of FullNode on the one host.

wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
bash deploy_tron.sh

Deployment of SolidityNode on the one host.

wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
# User can self-configure the IP and Port of GRPC service in the turst-node field of SolidityNode. trust-node is the fullnode you just deploy.
bash deploy_tron.sh --app SolidityNode --trust-node <grpc-ip:grpc-port>

Deployment of FullNode and SolidityNode on the same host.

# You need to configure different gRPC ports on the same host because gRPC port is available on SolidityNode and FullNodeConfigure and it cannot be set as default value 50051. In this case the default value of rpc port is set as 50041.
wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
bash deploy_tron.sh --app FullNode
bash deploy_tron.sh --app SolidityNode --rpc-port 50041

Deployment of grpc gateway

Summary

This script helps you download the code from https://github.com/tronprotocol/grpc-gateway and deploy the code on your environment.

Pre-requests

Please follow the guide on https://github.com/tronprotocol/grpc-gateway Install Golang, Protoc, and set $GOPATH environment variable according to your requirement.

Download and run script

wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_grpc_gateway.sh -O deploy_grpc_gateway.sh

Parameter Illustration

bash deploy_grpc_gateway.sh --rpchost [rpc host ip] --rpcport [rpc port number] --httpport [http port number] 

--rpchost The fullnode or soliditynode IP where the grpc service is provided. Default value is "localhost".
--rpcport The fullnode or soliditynode port number grpc service is consuming. Default value is 50051.
--httpport The port intends to provide http service provided by grpc gateway. Default value is 18890.

Example

Use default configuration:

bash deploy_grpc_gateway.sh

Use customized configuration:

bash deploy_grpc_gateway.sh --rpchost 127.0.0.1 --rpcport 50052 --httpport 18891

More Repositories

1

java-tron

Java implementation of the Tron whitepaper
Java
3,699
star
2

wallet-cli

Wallet CLI
Java
598
star
3

documentation

Documentations of project TRON
PHP
578
star
4

tronweb

Javascript API Library for interacting with the TRON Network
JavaScript
423
star
5

sun-network

Java
346
star
6

documentation-en

235
star
7

tips

TRON Improvement Proposals
221
star
8

protocol

Shell
152
star
9

tronbox

TronBox - Simple development framework for tronweb
JavaScript
144
star
10

trident

Java
136
star
11

wiki

111
star
12

tron-contracts

Solidity smart contracts for the TRON blockchain https://tron.network
JavaScript
100
star
13

documentation-zh

93
star
14

tronwallet-adapter

TypeScript
59
star
15

tronj

Java sdk of tron
Java
49
star
16

event-plugin

Tron eventsubscribe plugin
Java
36
star
17

tron-eventquery

Tron-EventQuery is implemented with tron's event subscribe model, it's used to query event triggers from fullnode.
Java
36
star
18

docker-tron-quickstart

A full private network for Tron development
33
star
19

libp2p

The p2p system implemented in java language
Java
33
star
20

tron-box

TronBox - Simple development framework for tronweb
31
star
21

tron-demo

Tron tools
JavaScript
28
star
22

tron-studio

DEPRECATED. Use TronBox for smart contract deployment.
Java
26
star
23

chainbase

a decentralized database for blockchain
25
star
24

tron-sdk-py

Python
16
star
25

btfsfile

Proof of concept DApp on BTFS
JavaScript
16
star
26

pm

Project Management: Meeting notes and agenda items
16
star
27

go-client-api

13
star
28

tron-cli

TRON-CLI is a command line tool which allows developers quickly set up and manage TRON nodes and service.
13
star
29

zksnark-java-sdk

a zksnark jni library
Java
13
star
30

tron-station-sdk

Javascript API Library for estimating Tron energy and bandwidth consumption based on Tron network.
JavaScript
13
star
31

system-test

Java
11
star
32

tron-grid

10
star
33

tron-rosetta-api

A java-tron api for rosetta.
Roff
9
star
34

ai-protocol

Solidity
9
star
35

java-http-client

Java
7
star
36

custom-oracle

Custom oracle for the Tron blockchain.
JavaScript
7
star
37

tron-blog

JavaScript
7
star
38

lever

stress testing for java-tron
Java
6
star
39

sun-photon

JavaScript
5
star
40

tron-mpc-testnet

Rust
3
star
41

cpp-tron

the cpp implementation of TRON protocol
3
star
42

OSSRH-87363

3
star
43

tron-events

An application server to save to and retrieve events from a cached db
3
star
44

sun.js

JavaScript
3
star
45

account-audit

Jupyter Notebook
2
star
46

tron-station

JavaScript
2
star
47

tools

Java
2
star
48

tron-zksnark

a tron zksnark server
C++
2
star
49

mp-ecdsa-java-sdk

a multi-party-ecdsa jni library
Java
2
star
50

tron-station-lib

Energy/BP cost API for tron-station and developers
2
star
51

tron-blog-zh

JavaScript
2
star
52

block-parser

implement GRPC to read event infos from block
2
star