8000 GitHub - Pythagoras51213/tron-testnet-config
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Pythagoras51213/tron-testnet-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tron Testnet

This is a public testnet for testing softwares updates, network topologies, and failovers
Join Telegram group at https://t.me/tronpublictestnet

Dependencies

sudo apt-get update
sudo apt-get upgrade

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y -V install oracle-java8-installer

Java-Tron Build

$ git clone https://github.com/tronprotocol/java-tron.git  
$ cd java-tron
$ ./gradlew build
$ git clone https://github.com/fbsobreira/tron-testnet-config.git  
$ cp build/libs/FullNode.jar tron-testnet-config/
$ cd tron-testnet-config
$ ./update_witness.sh 
<Enter your node private key>    
(If needed, you can get temp placeholder key at to tronscan.org)
$ ./work.sh start  
(start as Full node to begin syncing)
$ tail -F ~/java-tron/tron-testnet-config/logs/tron.log | grep -A5 -B2 "MyHeadBlockNum"

Start witness node

Use Wallet Operations below to register a TESTNET private key first

$ cd java-tron/tron-testnet-config
$ ./work.sh stop
$ ./update_witness.sh 
<Enter your node private key>
$ ./work.sh start

Wallet Operations

java-tron needs to be running for wallet actions Goto http://35.193.47.70:3000/#/nodes and confirm your node is listed and synced to highest block height

$ git clone https://github.com/tronprotocol/wallet-cli.git
$ cd wallet-cli
$ cp src/main/resources/config.conf .
$ nano config.conf
(mem mainnet, un-mem testnet, change fullnode IP to 127.0.0.1:50051)
$ ./gradlew build
$ ./gradlew run -Pcmd
Register wallet
# run:
# RegisterWallet
<enter password of choice>
# Login <pw>
# GetAddress    (save address)
# BackupWallet  (save pk)

Request test TRX in Telegram group. Post wallet address and IP of synced node

Create Witness
# run:
# Login
# GetBalance (confirm account balance > 0; balance shows TRX amount * 10^6)
# CreateWitness  <web url of choice>
Enter <y>; 
Enter <password>
# GetBalance  (confirm you have 9999000000 less)
# ListWitnesses  (confirm you are now on the list)

goto http://35.193.47.70:3000/#/representatives and confirm you are on the list

Vote
# run:
# FreezeBalance xxxx000000 3   (Freeze is TRX amount * 10^6)
Enter <y>;
Enter <password>
# GetBalance  (confirm balance decreased)\
# VoteWitness <account address> xxxx  (xxxx is amount of TRX --- notTRX* 10^6)
Enter <y>;
Enter <password>

Goto http://35.193.47.70:3000/#/votes-live and confirm you have votes

Go back to instructions above and start node as witness Wait for next 6 hour cycle to confirm you are producing blocks
http://35.193.47.70:3000/#/representatives

IF YOU FIND ANY INACCURACIES OR REQUIRED CLARIFICATIONS, PLEASE LET US KNOW IN TELEGRAM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%
0