Skip to content

gateway-504/Inri-Chain-Mining

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Inri-Chain-Mining

INRI CHAIN is an open-source, fair secure network empowering people with transparency, inclusion, and decentralized innovation.

X : https://x.com/inrichain

Website : https://inri.life

Explorer : https://explorer.inri.life

A Step-by-Step Guide Mining INRI-Chain with GETH on Ubuntu - Docker

Hardware Requirements

  • Server/WSL/Ubuntu VM with internet access

  • 50GBs of free storage

  • 2 CPU cores

1. Prequisites

Install Docker

sudo apt update && sudo apt upgrade -y
sudo apt install -y ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
  https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER
newgrp docker

Verify Installation:

docker --version
docker run hello-world

Install build tools:

sudo apt update && sudo apt install -y golang build-essential curl

Download Geth v1.10.23 (released before Ethereum's merge):

wget https://github.com/ethereum/go-ethereum/archive/refs/tags/v1.10.23.tar.gz
tar xvzf v1.10.23.tar.gz
cd go-ethereum-1.10.23

Build the binary:

make geth

Move the built binary for easy use:

sudo cp build/bin/geth /usr/local/bin/geth-inri

2. Create Wallet (If you don't have one)

cd $HOME
docker run -it --rm \
  -v /inri:/root/.ethereum \
  ethereum/client-go:v1.10.26 \
  account new --password <(echo -n "your-strong-password")

→ Copy the address: 0x...

3. Download Genesis

curl -fSLo "$HOME/genesis.json" https://rpc.inri.life/genesis.json

4. Init Chain

docker rm -f inri-miner
docker run --rm -v /inri:/root/.ethereum -v "$HOME/genesis.json":/genesis.json:ro \
  ethereum/client-go:v1.10.26 init /genesis.json

5. Run Miner

docker run -d --name inri-miner --restart unless-stopped \
  -v /inri:/root/.ethereum \
  -p 30303:30303/tcp -p 30303:30303/udp \
  -p 8545:8545 -p 8546:8546 \
  ethereum/client-go:v1.10.26 \
  --networkid 3777 --port 30303 \
  --syncmode full --cache 1024 \
  --http --http.addr 0.0.0.0 --http.port 8545 \
  --http.api eth,net,web3,miner,txpool,admin --http.corsdomain "*" --http.vhosts "*" \
  --ws --ws.addr 0.0.0.0 --ws.port 8546 --ws.api eth,net,web3 \
  --bootnodes "enode://5c7c744a9ac53fdb9e529743208ebd123f11c73d973aa2cf653f3ac1bdf460b6f2a9b2aec23b8f2b9d692d8c898fe0e93dac8d7533db8926924e770969f3a46a@134.199.203.8:30303" \
  --mine --miner.threads 4 --miner.etherbase 0xYourWalletHere
  • You'll need to wait for your node to fully synchronize with the network, a process that can take hours.

  • Correct operation is confirmed when you see logs indicating a new block has been sealed.

  • The mined potential block message shows your node has proposed a new block, and Successfully sealed new block confirms it has been finalized and permanently added to the chain.

Docker Commands

See logs

docker logs -f inri-miner

Attach Console

docker exec -it inri-miner geth attach /root/.ethereum/geth.ipc

Stop Miner

docker stop inri-miner

Start Miner

docker start inri-miner

Stop & Delete Miner

docker rm -f inri-miner

About

INRI CHAIN is an open-source, fair secure network empowering people with transparency, inclusion, and decentralized innovation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors