Compiling and Running java-tron on Windows via WSL
The Tron Blockchain Core: https://github.com/tronprotocol/java-tron can actually be compiled under Windows with the help of WSL (Windows SubSystem for Linux)
Install WSL
You can follow the steps here to install WSL
Install Oracle-JDK-8
- apt update
- apt upgrade
- Add the following line to /etc/apt/sources.list:
deb https://debian.opennms.org/ stable main
- Install GPG key of the repository:
wget -O - http://debian.opennms.org/OPENNMS-GPG-KEY | sudo apt-key add -
- Update the package index:
sudo apt-get update
- Install oracle-java8-installer deb package:
sudo apt-get install oracle-java8-installer
Build it using gradlew
$ ./gradlw --warning-mode all clean build
Using VSCode
We can use VSCode + Remote - WSL Extension (so that you can develop on Windows). You may try using IntelliJ but some dependency may not resolve.
Start the Full Node. The -c specifies the config file and -d specifies the database i.e. output directory.
nohup java -Xmx24g -XX:+UseConcMarkSweepGC -jar FullNode.jar -c config.conf -d database-path
Check the logs tail -f logs/tron.log and check for the blocks tail -f logs/tron.log | grep -i pushblock
Tests
However, at the time of writing, one test is failing:
Apart from this, all good.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Thank you for reading ^^^^^^^^^^^^^^^
NEW! Following my Trail (Upvote or/and Downvote)
Follow me for topics of Algorithms, Blockchain and Cloud.
I am @justyy - a Steem Witness
https://steemyy.com
My contributions
- Video Downloader
- Steem Blockchain Tools
- Free Cryptos API
- VPS Database
- Computing Technology Blog
- A few useless tools
- And some other online software/tools
- Merge Files/Videos
- LOGO Turtle Programming Chrome Extension
- Teaching Kids Programming - Youtube Channel and All Contents
Delegation Service
Support me
If you like my work, please:
- Buy Me a Coffee, Thanks!
- Become my Sponsor, Thanks!
- Voting for me:
https://steemit.com/~witnesses type in justyy and click VOTE
- Delegate SP: https://steemyy.com/sp-delegate-form/?delegatee=justyy
- Vote @justyy as Witness: https://steemyy.com/witness-voting/?witness=justyy&action=approve
- Set @justyy as Proxy: https://steemyy.com/witness-voting/?witness=justyy&action=proxy
Alternatively, you can vote witness or set proxy here: https://steemit.com/~witnesses
Good morning @justyy.
Sorry my friends, I want to ask, why did I receive about 1.93% of the votes from you because I was a delegation of 950 SP, before I got 10.16%. Did I do something wrong to you. Thanks you for your kindness during this time helping me.
Good evening my Friend @justyy . Recently I added my delegation from 950,484 SP to 1000,488 SP. I hope you can help me to get better Vote from you. Because right now I'm promoting Steemit to my friends in Indonesia. Thanks you for your attention and help me during this time. Always success for you my Friend.
I already done set voting proxy for you my Friend. Please check. Thanks.