Xenea Docs
  • OVERVIEW
    • Summary of Xenea
    • Core Technology
      • PoD(Proof of Democracy)
      • DACS (Decentralized Autonomous Content Storage)
  • XENE Tokenomics 1.0
    • What is XENE?
    • XENE Tokenomics
    • XENE Max Supply
    • XENE Genesis Tokens
    • Mining XENE with PoD
    • XENE Burning Mechanism
  • WHITEPAPER
    • Abstract
    • Legal Disclaimer
    • Introduction
    • Basic Concepts of Blockchain
    • Current Blockchain Issues
    • General Description
    • Purpose and Uniqueness
    • Basic Functions of the Xenea
    • PoD Consensus Algorithm Overview
    • Xenea Blockchain Nodes: The Pillars of the Network
    • Block Reward Mechanism: Fair Distribution of Rewards
    • Specifications: A Deeper Dive into Xenea Blockchain
    • XENEA Wallet
    • DACS Node Architecture and Sustainable Generation Manager
    • Halving
    • Finality
    • Token Economics for Sustaining the Xenea
    • Token Allocation and Supply
    • Xenea Governance Overview
    • Future Works
    • Development Roadmap
  • TESTNET
    • How to Run a Test-Net Node
    • How to Connect to Kura Testnet
    • Claim Kura Testnet XENE
    • How to Deploy to Smart Contracts
      • Remix IDE
      • Hardhat
      • Truffle
  • OTHER DOCUMENTS
    • AML KYC Policy
Powered by GitBook
On this page
  • Connecting through Ubuntu Machine
  • Connecting through Windows Machine
  1. TESTNET

How to Run a Test-Net Node

PreviousDevelopment RoadmapNextHow to Connect to Kura Testnet

Last updated 7 months ago

A step-by-step guide to setting up the client machine for running a CVC-Testnet private blockchain network using Geth

Clients can connect through either Ubuntu or Windows platforms. Here we provide details for both platforms.

Please Note:

The original functionality of the Xenea is still under development. Therefore, please use Geth to connect to the testnet.

Connecting through Ubuntu Machine

  1. Install Geth:

Download and install Geth (Go Ethereum) on the client machine. You can find the appropriate installer or binary for your operating system from the official Geth repository:

Follow the installation instructions specific to your operating system.

  1. Create a Directory for Blockchain Data:

Choose a location on your client machine where you want to store the blockchain data.

  1. Run this command: to Initialize genesis file:

./geth --datadir ./data init ./genesis.json

  1. Start Geth with Connection Parameters:

Run the following command to start Geth on the client machine and connect it to the server:

./geth --networkid 5555 --datadir "./data" --syncmode full --http --allow-insecure-unlock --authrpc.port 8551 -­http.corsdomain "*" --http.port 8545 console

  1. Add peers:

admin.addPeer("enode://16c70e5650630dd7d898c5dbde4278cdad8fdeb6a6983846d9e87b3f89f097851e0568e6489fbe3ff79e8828b6fbf5f22d5fe999f7ea09d196abdc71a91ba39a@3.128.163.227: 30303")

  1. Verify Connectivity:

• After executing the above command, Geth will start and attempt to connect to the server.

• In the Geth console on the client machine, you should see logs indicating the connection status and synchronization progress.

• To verify that the client is connected to the server, run the following command in the Geth console: admin.peers

Connecting through Windows Machine

  1. Install Geth:

  1. Create a Directory for Blockchain Data

• Choose a location on your client machine where you want to store the blockchain data.

• Create a new directory at the chosen location to store the data.

  1. Initialize genesis file:

• Run the following command to Initialize genesis file:

./geth --datadir ./data init ./genesis.json

  1. Start Geth with Connection Parameters:

• Run the following command to start Geth on the client machine and connect it to the server:

./geth --networkid 5555 --datadir "./data" --syncmode full --http --allow-insecure-unlock --authrpc.port 8551 -­http.corsdomain "*" --http.port 8545 console

  1. Add peers:

admin.addPeer("enode://16c70e5650630dd7d898c5dbde4278cdad8fdeb6a6983846d9e87b3f89f097851e0568e6489fbe3ff79e8828b6fbf5f22d5fe999f7ea09d196abdc71a91ba39a@3.128.163.227: 30303")

  1. Verify Connectivity:

• After executing the above command, Geth will start and attempt to connect to the server.

• In the Geth console on the client machine, you should see logs indicating the connection status and synchronization progress.

• To verify that the client is connected to the server, run the following command in the Geth console: admin.peers

This will display a list of connected peers, including the server node. If the connection is successful, you should see the server's information in the output.

Congratulations!

You have now set up the client machine to connect to the private blockchain network running on the server. You can interact with the network using the Geth console on the client machine, execute transactions, deploy smart contracts, and more.

Please note:

To adjust any necessary network configurations, such as firewall rules or security groups, to allow communication between the server and client machines on the required ports (e.g., 30303 for peer-to-peer communication).

Download and install Geth (Go Ethereum) on the client machine. You can find the appropriate installer or binary for your operating system from the official Geth repository: Follow the installation instructions specific to your operating system.

https://github.com/ethereum/go-ethereum
https://github.com/ethereum/go-ethereum