Skip to main content

Running a VladSwap Node

To participate in the VladSwap network, you will need to run a vladswap-node. This is a specialized subrelay that is specifically configured to participate in the VladSwap marketplace.

By running a vladswap-node, you can help to improve the performance and reliability of the network, while also earning a portion of the trading fees.

Prerequisites

Before you begin, you will need to have the following installed:

Installation

To get started, clone the vladswap-node repository from GitHub and build the project:

git clone https://github.com/vladimir-vamp/vladswap-node.git
cd vladswap-node
cargo build --release

Running the Node

Once the project has been built, you can run the node using the following command:

./target/release/vladswap-node

This will start the node and connect it to the VladSwap network. You should see output in your terminal indicating that the node is running and listening for connections.

Configuration

The vladswap-node can be configured using a config.toml file. This file allows you to customize the behavior of the node, including the following:

  • Relay Mode: Whether to run the node in relay mode, which will relay messages for other nodes on the network.
  • Gossip Topic: The default gossip topic to subscribe to.
  • VDF Difficulty: The VDF difficulty for the challenge/response protocol.
  • RPC Configuration: The configuration for the RPC server.

For more information on how to configure the vladswap-node, please see the config.toml.example file in the root of the repository.