Coder Social home page Coder Social logo

node-setup's Introduction

POA Node Setup Instructions

The following instructions are for docker-based Nethermind nodes.

Install docker & docker compose

Install docker & docker compose

sudo apt-get update && sudo apt-get dist-upgrade

sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io

sudo groupadd docker
sudo usermod -aG docker $(whoami)
# Refresh group
sudo su - $(whoami)

# Verify installation
docker run hello-world

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

# Verify installation
docker-compose --version
POA Core RPC node

POA Core RPC node

Requirements

  • CPU: 2
  • Memory: 8
  • Disk: 400G
git clone https://github.com/openpoa/node-setup.git

docker-compose -f docker-compose.poacore-rpc.yml up -d
POA Core Validator node

POA Core Validator node

Requirements

  • CPU: 4
  • Memory: 16
  • Disk: 400G

You will need 3 keys:

  • Voting key
  • Mining key
  • Payout key
git clone https://github.com/openpoa/node-setup.git

cp .env.example .env

Edit .env

ETHSTATS_ID=[validator_name] # whatever you'd like
ETHSTATS_CONTACT=[contact_email] # whatever you'd like
ETHSTATS_SECRET=[netstat_secret_key] # ask for this
KEY=[your_private_key_for_mining_address] # mining private key
SEQAPIKEY=[seq_api_key] # ask for this

Start

docker-compose -f docker-compose.poacore-validator up -d

Follow along with logs and when the node is fully caught up, edit the docker compose file to turn mining on

# Edit docker-compose.poacore-validator.yml
# Set NETHERMIND_INITCONFIG_ISMINING: "true"

# Restart node
docker-compose -f docker-compose.poacore-validator up -d
POA Core Archive node

POA Core Archive node

Requirements

  • CPU: 4
  • Memory: 16
  • Disk: 2TB
git clone https://github.com/openpoa/node-setup.git

docker-compose -f docker-compose.poacore-archive.yml up -d
POA Sokol RPC node

POA Sokol RPC node

Requirements

  • CPU: 2
  • Memory: 8
  • Disk: 400G
git clone https://github.com/openpoa/node-setup.git

docker-compose -f docker-compose.poasokol-rpc.yml up -d

node-setup's People

Contributors

raymondjacobson avatar

Watchers

alexandre cognard avatar  avatar

node-setup's Issues

Sokol RPC doesn't sync

Hello !

I tried to set up a Sokol RPC node using the docker-compose file provided, but It can sync.

It keeps waiting for peers with the following logs :

2022-10-24 06:43:41.1486|Waiting for peers... 30s 
2022-10-24 06:43:42.1504|Peers | with known best block: 0 | all: 0 | 
2022-10-24 06:43:42.1504|Waiting for peers... 31s 
2022-10-24 06:43:43.1517|Waiting for peers... 32s 

I set up an Ethstat for Sokol, so I can watch node sync, but it seems no Sokol RPC could synchronize to the network : https://ethstats-sokol.arianee.net

Do you manage to make it work ?

NB: I tried changing the Bootnodes / deleting them, but it doesn't work much better

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.