Conflux-rust is a rust-based implementation of Conflux protocol, it is fast and reliable.
- Install rust.
- rustup update.
- Make sure you are using the stable branch.
- Install clang for compiling rocksdb.
- Install other dependencies for rocksdb. Instruction can be found in https://github.com/facebook/rocksdb/blob/master/INSTALL.md
- Build the project.
- Enter directory
run
. - Edit
default.toml
:- Set
public_address
according to your public IP. - Set
mining_author
to the account address to receive mining reward.
- Set
- Execute the command
./../target/release/conflux --config default.toml
- Install solc to compile solidity.
- Run dev-support/dep_pip3.sh to install extra python3 packages for running test.
- Run the python scripts in test directory.
Note that there is another sha3 package which does not contain necessary function. Do not install that package! Install pysha3 instead.
Thank you for considering helping out with our source code. We appreciate any contributions, even the smallest fixes.
Here are some guidelines before you start:
- Please fork the project to contribute your pull requests.
- If you wish to submit complex changes, please fire an issue to communicate with the core devs first.
- Pull requests need to be based on and opened against the
master
branch. - Code must be formatted using cargo_fmt.sh.
- We use reviewable.io as our code review tool for any pull request.