Skip to content

Latest commit

 

History

History
76 lines (53 loc) · 2.3 KB

README.md

File metadata and controls

76 lines (53 loc) · 2.3 KB

attn-server

Build Status Build status codecov

Attestation Server for XRPL Sidechains

Table of contents

Dependencies

Conan inclusion

This project depends on conan (v1.5 and higher, v2.0 not supported) to build it's dependencies. See https://conan.io/ to install conan.

Other dependencies

  • C++20
  • cmake - at least 3.20

Build and run

  1. Create a build directory. For example: build
  2. Change to that directory.
  3. Configure conan (once before very 1st build)
conan profile update settings.cppstd=20 default
conan profile update settings.compiler.libcxx=libstdc++11 default
conan profile update settings.arch=x86_64 default
  1. Run conan. The command is:
conan install -b missing -s build_type=Debug --output-folder . ..

(Note: the exact command I use is as follows, but this assumes gcc 12 is used and a gcc12 conan profile is present):

CC=$(which gcc) CXX=$(which g++) conan install -b missing --profile gcc12 -s build_type=Debug --output-folder . ..
  1. Create a build file (replace .. with the appropriate directory):
  • 5.1) Default. If you don't have installed rippled - this setup will download and build it.
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=build/generators/conan_toolchain.cmake ..
  • 5.2) If you have rippled build from source you can use it
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=build/generators/conan_toolchain.cmake -DRIPPLE_SRC_DIR=/home/user/repo/rippled -DRIPPLE_BIN_DIR=/home/user/repo/rippled/build-release ..
  1. Build the project:
make -j $(nproc)
  1. Run
./xbridge_witnessd --conf /home/user/repo/config.json

Guide

Attestation Server Documentation