UniChain is a high secure and scalable blockchain platform for Smart Society 5.0. This repos implements the core components of UniChain blockchain including unichain-core node, database and key management tools. For more information, please check out UniChain website and UniWolrd ecosystem.
- JDK 1.8 (JDK 1.9+ are not supported yet)
- On Linux Ubuntu system (e.g. Ubuntu 16.04.4 LTS), ensure that the machine has Oracle JDK 8, instead of having Open JDK 8 in the system. If you are building the source code by using Open JDK 8, you may get fails
git clone https://github.com/uniworld-io/unichain-core.git
# checkout to stable version
cd unichain-core
./gradlew build
Binary files located in build/libs
folder.
cd build/libs
java -jar unichain-core.jar
_ _ _ __ (_) ___| |__ __ _(_)_ __
| | | | '_ \| |/ __| '_ \ / _` | | '_ \
| |_| | | | | | (__| | | | (_| | | | | |
\__,_|_| |_|_|\___|_| |_|\__,_|_|_| |_|
Run unichain node with customized config
cd build/libs
java -jar unichain-core.jar -c ./your_localtion/of_config_file.conf
If you are witness, run unichain node with --witness and -p options (-p: witness private key)
java -jar unichain-core --witness -p your_witness_private_key
java -jar unichain-core --witness -p d06f6fbea126162c1bfac04869cf94331ca2a98610737e4b05b56527b0b8bf45
unichain-core is an open source project. It is the work of contributors. We appreciate your help! Thank you for all of our contributors. This project wouldn’t be what it is without you!
If you'd like to contribute to unichain-core, please fork, fix, commit and send a pull request for the maintainers to review and merge into the main code base.
First of all, unichain-core follows gitflow workflow. Please open pull requests to the develop branch. Once approved, we will close the pull request and merge into master branch.
We are always happy to receive pull requests, and do our best to review them as fast as possible. Not sure if that typo is worth a pull request? Do it! We would appreciate it.
If your pull request is not accepted on the first try, don't be discouraged as it can be a possible oversight. Please explain your code as detailed as possible to make it easier for us to understand.
Any significant improvement should be documented as a GitHub issue before anyone starts working on it.
When filing an issue, make sure to answer these three questions:
- What did you do?
- What did you expect to see?
- What did you see instead?