Giter Site home page Giter Site logo

public-testnets's Introduction

If you find this Repo, this is for the Tgrade mainnet preparation.
We have already assigned external validators for the task and not accepting newcomers. Thank you

Tgrade - MainNet-1

You can see the live network via our block explorer.
When you are ready to build a node, follow the instructions below:

Hardware Requirements

For running a tgrade validator. We tested successfully with the following Architecture:

  • Ubuntu 20.04 LTS
  • go version 1.18.1 [1] or newer
  • Installed packages make and build-essential [2] [3]
  • 2 or more CPU cores Intel or AMD chipset
  • At least 40GB of disk storage
  • At least 4GB of memory (RAM)

Ref -
[1] https://github.com/golang/go/wiki/Ubuntu
[2] https://packages.ubuntu.com/focal/make
[3] https://packages.ubuntu.com/focal/build-essential

You can use a physical infrastructure (baremetal) or wellknown cloud providers like: DigitalOcean, AWS, Google Cloud Platform, among others

Build the tgrade binary

The tgrade binary is the backbone of the platform.
It is both blockchain node and interaction client. Therefore we use git to clone tgrade repo into our running validator

git clone https://github.com/confio/tgrade
cd tgrade
git checkout v0.10.0-rc2

Run GO install and build for the upcoming binary

make build

Move the binary to an executable path

sudo mv build/tgrade /usr/local/bin

At last, Thank you
As an official announcement, we can start the process at the moment:

  • gathering the correct info,
  • getting the pre-genesis file ready,
  • and submitting a gen tx in a few days.

But we will ask you to recompile the binary once the final version of tgrade 0.10.0 is available.

Setting up a Genesis Tgrade Validator - PHASE 1

( to be announced ) - within 14.06 - 17.06

Initialize your genesis and configuration files

Initialize your genesis and configuration files for all validators nodes

Usage:

tgrade init [moniker] [flags]
tgrade init my-validator --chain-id tgrade-mainnet-1 --home /opt/validator/.tgrade

Import your Validator Key

We already have assigned the genesis validators for the upcoming blockchain. Therefore use the tgrade address YOU provided via Email.

Usage:

tgrade keys add <name> --recover
tgrade keys add my-validator --recover --home /opt/validator/.tgrade

Into the mnemonic(s) used for your tgrade address

Get the pre-genesis file

Get the genesis file and moved to the right location

wget https://raw.githubusercontent.com/confio/public-testnets/main/mainnet-1/config/pre-genesis.json -O ~/opt/validator/.tgrade/config/genesis.json

( this will be the case if the APP Home directory is /opt/validator/.tgrade , please change it accordingly to your system/validator)

Setup the right parameters and values on the TOML files

Please edit the config/app.toml and config/config.toml accordingly

- app.toml: set minimum-gas-prices
  minimum-gas-prices = "0.05utgd"

- config.toml: set persistent_peers and other suggested changes
  moniker = "<your validator name>"
  persistent_peers = "[email protected]:26656,[email protected]:26656,[email protected]:26656"

Create genesis txs - PHASE 2

Collect tendermint node-ids and validator info

You need to know some specifs info for your gen TX

  • node-id tgrade tendermint show-node-id
  • Public IP exposed to the Internet

Create genesis txs

Each validator needs to create a genesis tx, by running:

tgrade gentx my-validator 0utgd 285000000000utgd \
  --amount 0utgd \
  --vesting-amount 285000000000utgd \
  --fees 10000utgd \
  --moniker my-validator \
  --ip "<public ip>" \
  --node-id $(sudo tgrade tendermint show-node-id --home /opt/validator/.tgrade) \
  --chain-id tgrade-mainnet-1 \
  --home /opt/validator/.tgrade

vesting-amount, node-id, and home values are just examples, please change it accordingly to your system/validator

Upload your Gen_TX

The above will create a gentx file. We are going to need it for the genesis collect.

  1. Fork the repo: https://github.com/confio/public-testnets , clicking on fork, and choose your account
  2. Clone your fork copy to your local machine
  3. Copy the gentx file into ../mainnet-1/config/gentx/
  4. Commit and push the repo
  5. Create a pull request from your fork to the main repo
  6. Inform us on the discord channel
git clone https://github.com/<your_github_username>/public-testnets
cd public-testnets
git add public-testnets/mainnet-1/config/gentx/
git commit -am "<your validator name> - gentx - comment"
git push origin master

Start your Validator - PHASE 3

( to be announced ) - within 22.06 - 24.06

public-testnets's People

Contributors

albertandrejev avatar alpe avatar bulgakovvlad avatar curlycrypto184 avatar donromero avatar ethanfrey avatar garm799 avatar gotogu avatar jcs1910 avatar jetlag666 avatar jjangg96 avatar josect-hs avatar khutoryansky avatar letspesl avatar levackt avatar lightiv avatar migmeneses avatar nhhtrung avatar nodeateam avatar qmin80 avatar richard-stakingcabin avatar rootwarp avatar sayeh-1337 avatar stakecraft avatar staking7pc avatar ubikcapital avatar vgk88 avatar webmaster128 avatar wjdfx avatar zenon-provalidator avatar

Watchers

 avatar

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.