Run Seeder

Repository: Seeder GitHubarrow-up-right

  1. Clone the repository:

    git clone https://github.com/radiusxyz/seeder
  2. Build the binary

    cd seeder
    cargo build --release
  3. Set up environment variables in ./scripts/execute/env.sh.

  4. Initialize the Seeder:

    ./scripts/execute/01_init_seeder.sh
  5. Start the Seeder:

    ./scripts/execute/02_run_seeder.sh
  6. Set up environment variables in ./scripts/rpc-call/env.sh.

  7. Initialize RPC: This action serves for is registering sequencing information related to the LivenessServiceManager

    ./scripts/rpc-call/10_initialize.sh

Environment Variables

chevron-rightseeder/scripts/execute/env.shhashtag
#!/bin/bash
CURRENT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
PROJECT_ROOT_PATH="$( cd $SCRIPT_PATH/../.. >/dev/null 2>&1 ; pwd -P )"

BIN_FILE_NAME="seeder"
BIN_PATH="$PROJECT_ROOT_PATH/scripts/$BIN_FILE_NAME"

DATA_PATH=$PROJECT_ROOT_PATH/data
CONFIG_FILE_PATH=$DATA_PATH/Config.toml

# Copy the new version's binary to the scripts directory
if [[ -f "$PROJECT_ROOT_PATH/target/release/$BIN_FILE_NAME" ]]; then
  cp $PROJECT_ROOT_PATH/target/release/$BIN_FILE_NAME $PROJECT_ROOT_PATH/scripts
fi

# Check if the binary exists
if [[ ! -f "$BIN_PATH" ]]; then
    echo "Error: Secure RPC binary not found at $BIN_PATH"
    echo "Please run this command 'cp $PROJECT_ROOT_PATH/target/release/$BIN_FILE_NAME $PROJECT_ROOT_PATH/scripts' after building the project"
    exit 1
fi

# ONLY THE FOLLOWING VARIABLES SHOULD BE CHANGED

# Used by transaction orderers to register their IP addresses  
# and retrieve the IP addresses of peers when they register  
# in the LivenessServiceManager contract.  
SEEDER_EXTERNAL_RPC_URL="http://127.0.0.1:6000"  

# Used by the network owner to add sequencing information,  
# including the RPC and WebSocket URLs for interacting with  
# the LivenessServiceManager contract, the contract address itself, and  
# the platform with the service provider.  
SEEDER_INTERNAL_RPC_URL="http://127.0.0.1:6001"  
chevron-rightseeder/scripts/rpc-call/env.shhashtag

Last updated