Skip to main content

Installation

caution

This project is only supported on UNIX-based platforms (Linux or macOS) for now. Don't expect it to work on Windows platforms.

Building the source

Requirements

You can install GMP and common libs with the following command:

Linux

  • on Ubuntu: sudo apt install lld clang e2fsprogs libgmp-dev protobuf-compiler
  • on Fedora: sudo dnf install git clang cmake e2fsprogs e2fsprogs-devel protobuf-compiler protobuf-devel gmp-devel

MacOS

  • on MacOS: brew install gmp protobuf pkg-config then export the lib in $PATH :
export LIBRARY_PATH=/opt/homebrew/Cellar/gmp/6.2.1_1/lib:$LIBRARY_PATH

Build

cargo build

Test

cargo test

Release

cargo build --workspace --profile=production

Running

cargo run -- --chain-spec-file src/res/chainspec/local.ron --rpc-listen-address 0.0.0.0:8545 --no-dns-discovery

You can also change log settings thanks to Rust env_logger: RUST_BACKTRACE=1 RUST_LOG="INFO,truite::stages=debug,truite::trie=debug,truite::state=debug,truite::consensus=debug,truite::rpc=debug"

Releases

caution

EcoMobiCoin node is still in prealpha and can have some issues, be warned ;)

CLI

You can run truite in CLI thanks to the packages built in https://gitlab.limos.fr/ecomobicoin/truite/-/packages/

Join testnet

cargo run -- --chain clermont --rpc-listen-address 0.0.0.0:8545 --no-dns-discovery

Docker

Docker images are available on the lab's Gitlab: https://gitlab.limos.fr/ecomobicoin/truite/container_registry

Run

docker login registry.gitlab.limos.fr
cd docker/demo
docker compose up

Architecture

The node architecture is available in a dedicated page