Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 772 Bytes

File metadata and controls

10 lines (8 loc) · 772 Bytes

monad-rpc

The prerequisite to starting the RPC server is to first start a Monad consensus client and connect the RPC server to it.

Run the following in the repo root directory:

  1. export RUST_LOG=info
    • The logging level can be adjusted as needed.
  2. CXX=/usr/bin/g++-15 CC=/usr/bin/gcc-15 ASMFLAGS=-march=haswell CFLAGS="-march=haswell" CXXFLAGS="-march=haswell" TRIEDB_TARGET=triedb_driver cargo run --bin monad-rpc -- --ipc-path docker/devnet/monad/mempool.sock --triedb-path <path_to_triedb_directory> --node_config <path_to_node_toml>
    • The --ipc-path must point to the same file and directories passed to the Monad consensus client.
    • The --triedb-path must point to a directory containing only a single triedb file.