Full Node
This document show how do setup of a new full node
Index
NETWORK | TYPE | CHAIN ID | STATS SERVER |
---|---|---|---|
mainnet | validator | 1717 | ws://lb-doric-mainnet-stats-db74894ede9b9ba8.elb.us-east-1.amazonaws.com:3000/api |
testnet | fullnode | 1313 | ws://lb-doric-testnet-stats-cc0fe234c9e6d6c9.elb.us-east-1.amazonaws.com:3000/api |
ENODES
NETWORK | TYPE | NUMBER | HOST |
---|---|---|---|
mainnet | fullnode | 1 | enode://d1766a67c000f63868d28347c3de1acc6c7b6bcf46270039a0a72acdb35a1002ad9fd6169affaf9567a5a068d6692460a7293da8437b3d9d9f6b9739e9a7afb7@146.190.50.161:30303 |
testnet | fullnode | 1 | enode://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 inOS Images
(use last version) - Select
t2.medium
inInstance Type
- Select
Key pair name
with namedoric-[NETWORK]-[TYPE]
- In
Network Settings
click inEdit
- Select the
vpc-doric-[NETWORK]
- If the [TYPE] === "validator" ?
Select Private Subnet
:Select Public Subnet
Select Auto-assign public IP
withenable
- In
Firewall Group
select option Select existing security groupSelect Common security groups
doric-[NETWORK]
- Select the
Config Storage
with150 GB
andgp2
- 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 scriptadd-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