Skip to content

Latest commit

 

History

History
74 lines (65 loc) · 1.41 KB

build.md

File metadata and controls

74 lines (65 loc) · 1.41 KB

Build Source

🧰 Install Dependencies

  • Rust Toolchain Linux/MacOS

    curl https://sh.rustup.rs -sSf | sh
    rustup default nightly
  • Install gRPC, RockDB dependencies

    Linux

    sudo apt install clang libclang-dev llvm llvm-dev linux-kernel-headers libev-dev
    sudo apt install cmake ninja-build libprotobuf-dev protobuf-compiler

    MacOS

    brew install llvm cmake ninja automake libtool protobuf
  • Install WASM target

    rustup target add wasm32-unknown-unknown

⬇️ Download

  • Download the source code
    git clone https://github.com/padicresearch/odana
    cd odana

⌛️ Running node Linux/MacOS

  • Build the node from source
    cargo build --release
  • Generate Node Identity
    ./target/release/odana identity generate
  • Initialize node configuration
    ./target/release/odana config init
  • Create a miner account (optional - required if you want to run as a miner)
    ./target/release/odana account new
    Output:
    {
      "address": "0xffff…ffff",
      "secret" : "0xffff…ffff"
    }
    Set miner
    ./target/release/odana config update --miner="0xffff…ffff"
  • Run node
    ./target/release/odana run