Skip to main content

Full Node


This document show how do setup of a new full node

Index

NETWORKTYPECHAIN IDSTATS SERVER
mainnetvalidator1717ws://lb-doric-mainnet-stats-db74894ede9b9ba8.elb.us-east-1.amazonaws.com:3000/api
testnetfullnode1313ws://lb-doric-testnet-stats-cc0fe234c9e6d6c9.elb.us-east-1.amazonaws.com:3000/api

ENODES

NETWORKTYPENUMBERHOST
mainnetfullnode1enode://d1766a67c000f63868d28347c3de1acc6c7b6bcf46270039a0a72acdb35a1002ad9fd6169affaf9567a5a068d6692460a7293da8437b3d9d9f6b9739e9a7afb7@146.190.50.161:30303
testnetfullnode1enode://e5f55e330905d804146f93eca7a05d994de6b3a50cb49416349c079ab9757659b798adeb57f3cfbcc7e32aa464d245beebbf2ee5dee8744ea7f8479e1d1a6f71@137.184.35.48:30303

Preparation Setup

Create to EC2 AWS

  • Access AWS EC2 Instances
  • Click in launch new instance
  • Define the Name to your instance
  • Select Ubuntu option in OS Images (use last version)
  • Select t2.medium in Instance Type
  • Select Key pair name with name doric-[NETWORK]-[TYPE]
  • In Network Settings click in Edit
    • Select the vpc-doric-[NETWORK]
    • If the [TYPE] === "validator" ? Select Private Subnet : Select Public Subnet
    • Select Auto-assign public IP with enable
    • In Firewall Group select option Select existing security group
      • Select Common security groups doric-[NETWORK]
  • Config Storage with 150 GB and gp2
  • Click in Launch Instance

Copy Content Script

  • Access your EC2 Instance created in last step
  • Access server that was created in before step
  • Access the folder Config in this repository and Copy content of script add-pkg-server.sh in your server
  • Modify the file add-pkg-server.sh in your server with env as example below
export STATIC_NODES_ARRAY="[ENODES]"
export CHAIN_ID=[CHAINID]
export NODEPORT="30303"
export TYPE_BLOCKCHAIN="FULLNODE"
export NODE_HTTP_PORT="8545"
export NODE_WS_PORT="8546"
export BLOCKCHAIN_ENVIRONMENT=[NETWORK]
export GIT_COMMIT_HASH="df52967ff6080a27243569020ff64cd956fb8362"
export STATS_SERVER=[STATS SERVER]
export STATS_NODE_USER=[NAME NODE]
export STATS_NODE_PASSWORD="pzJx&n2rOtO#B29" ' > ./.env
  • Add allow to execute
chmod +x add-pkg-server.sh && chmod +x run-docker.sh
  • Run bash
    • Preparing and run docker
    ./add-pkg-server.sh