Skip to content

Commit

Permalink
Update readme and rust setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardo-xxnet committed Feb 20, 2023
1 parent 2ee5c97 commit 4504e15
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@

First, complete the [basic Rust setup instructions](./doc/rust-setup.md).

### Build

Recommended OS to build the `xxnetwork-chain` binary is Ubuntu 20 or above.
The makefile provides build commands, of which the most important are:

```sh
make build-prod # Build production ready node binary
make build-release # Build release node binary
make build # Build all packages
```

### MacOS users: setup to compile for Linux

Before being able to build for linux on macOS, the following extra steps are needed:
Expand All @@ -14,14 +25,7 @@ brew tap SergioBenitez/osxct # Tap this project with brew
brew install x86_64-unknown-linux-gnu # Install cross-compile tools for GNU
```

### Build

The makefile provides build commands, of which the most important are:

```sh
make build # Build node binary for current OS
make build-linux-from-mac # Build node binary for Linux from macOS
```
Then, the target for the rust compiler needs to be specified on any build command with `--target=x86_64-unknown-linux-gnu`.

### Test

Expand Down Expand Up @@ -49,6 +53,6 @@ sh ./scripts/benchmark.sh

### Code Review

A code review was performed by ChainSafe. It focused mostly on the modification to the Staking pallet
A code review was performed by ChainSafe. It focused mostly on the modifications to the Staking pallet
and the custom made xx network pallets for cmix, economics and team custody.
The report can be found [here](./doc/ChainSafe%20xxchain%20Code%20Review.pdf).
4 changes: 2 additions & 2 deletions doc/rust-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Use a terminal shell to execute the following commands:
```bash
sudo apt update
# May prompt for location information
sudo apt install -y cmake pkg-config libssl-dev git build-essential clang libclang-dev curl
sudo apt install -y cmake pkg-config libssl-dev git build-essential clang libclang-dev curl protobuf-compiler
```

### Arch Linux
Expand All @@ -56,7 +56,7 @@ Use a terminal to run the following commands:
# Update
sudo dnf update
# Install packages
sudo dnf install cmake pkgconfig rocksdb rocksdb-devel llvm git libcurl libcurl-devel curl-devel clang
sudo dnf install cmake pkgconfig rocksdb rocksdb-devel llvm git libcurl libcurl-devel curl-devel clang protobuf-compiler
```

## Rust Developer Environment
Expand Down

0 comments on commit 4504e15

Please sign in to comment.