Skip to content

clark-clark/xionnode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Xion Node

Prerequisites

Before you begin, ensure your system meets the following requirements:

  1. Operating System: Ubuntu 20.04 LTS or similar Linux distribution.
  2. Dependencies: Install required software packages for compiling the source code.

Run the following commands to install the dependencies:

sudo apt update
sudo apt install -y git build-essential gcc g++ make jq wget curl libssl-dev libgmp-dev

Step 1: Clone the Xion Repository

Clone the official Xion GitHub repository to your local machine:

git clone https://github.com/xionprotocol/xion-core.git
cd xion-core

Step 2: Checkout the Desired Version

Check out the specific version of Xion you want to build. Replace <version> with the desired tag or branch name:

git checkout <version>

To see available versions, you can use:

git tag

Step 3: Install Go

Xion requires Go (Golang) version 1.19 or later. Install it using the following steps:

  1. Download the Go tarball:
    wget https://go.dev/dl/go1.20.6.linux-amd64.tar.gz
  2. Extract and set up Go:
    sudo rm -rf /usr/local/go
    sudo tar -C /usr/local -xzf go1.20.6.linux-amd64.tar.gz
    echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc
    source ~/.bashrc
  3. Verify the installation:
    go version

Step 4: Build the Xion Daemon

Run the following command to build the Xion daemon:

make build

This will compile the source code and generate the binary file.


Step 5: Verify the Build

Once the build process completes, verify the installation by checking the version of the Xion binary:

./build/xiond version

Step 6: Install the Binary

Move the built binary to a system-wide location for easier access:

sudo mv ./build/xiond /usr/local/bin/xiond

Confirm that the daemon is installed correctly:

xiond version

Step 7: Initialize the Node

Initialize your Xion node by running:

xiond init "<your-node-name>" --chain-id="<chain-id>"

Replace <your-node-name> with a unique name for your node and <chain-id> with the appropriate chain ID for your network.


Step 8: Configure the Node

Edit the configuration files located in ~/.xion/config/:

  1. Set peers and seeds in config.toml:

    nano ~/.xion/config/config.toml

    Add trusted peer addresses under the persistent_peers section.

  2. Customize app settings in app.toml:

    nano ~/.xion/config/app.toml

Step 9: Start the Node

Run the following command to start your node:

xiond start

Monitor the logs to ensure the node is running smoothly.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published