Giter Club home page Giter Club logo

mainnet's Introduction

Regen Network Mainnet

Building genesis.json (For admin use)

Execute:

go run . build-genesis regen-1

For pre-launch, we can ignore errors:

go run . build-genesis regen-prelaunch-1 --errors-as-warnings

Join as a validator

Requirements

Check out these instructions for installing [email protected]

If you haven't initialized your node, init regen chain by running

regen init --chain-id regen-1 <my_node_moniker>

Start your validator node

  • Step-1: Verify installation

    regen version --long

    it should display the following details:

    name: regen
    server_name: regen
    version: v1.0.0
    commit: 1b7c80ef102d3ae7cc40bba3ceccd97a64dadbfd
    build_tags: netgo,ledger
    go: go version go1.15.6 linux/amd64
  • Step-2: Download the mainnet genesis

    curl -s https://raw.githubusercontent.com/regen-network/mainnet/main/regen-1/genesis.json > ~/.regen/config/genesis.json
  • Step-3: Verify genesis

    jq -S -c -M '' ~/.regen/config/genesis.json | shasum -a 256

    It should be equal to the contents in checksum

  • Step-4: Update seeds and persistent peers

    Open ~/.regen/config/config.toml and update persistent_peers and seeds (comma separated list)

    Persistent peers

    Seeds

  • Step-5: Create systemd

    DAEMON_PATH=$(which regen)
    
    echo "[Unit]
    Description=regen daemon
    After=network-online.target
    [Service]
    User=${USER}
    ExecStart=${DAEMON_PATH} start
    Restart=always
    RestartSec=3
    LimitNOFILE=4096
    [Install]
    WantedBy=multi-user.target
    " >regen.service
  • Step-6: Update system daemon and start regen node

    sudo mv regen.service /lib/systemd/system/regen.service
    sudo -S systemctl daemon-reload
    sudo -S systemctl enable regen
    sudo -S systemctl start regen
    

That's all! Your node should be up and running now. You can query your node by executing the following command after the genesis time

regen status

Create validator (Optional)

Note: This section is applicable for validators who wants to join post genesis time.

IMPORTANT: Make sure your validator node is fully synced before running this command. Otherwise your validator will start missing blocks.

regen tx staking create-validator \
  --amount=9000000uregen \
  --pubkey=$(regen tendermint show-validator) \
  --moniker="<your_moniker>" \
  --chain-id=regen-1 \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --gas="auto" \
  --from=<your_wallet_name>

mainnet's People

Contributors

aaronc avatar clevinson avatar anilcse avatar dpdanpittman avatar matsuro-hadouken avatar mircea-c avatar handvoicer avatar gaia avatar mr0wnage avatar fedor77703 avatar ericet avatar easy2stake avatar dreamstaker avatar dee-effes avatar web3validator avatar bitoven-dev avatar bi23com avatar ama31337 avatar aliefaisala avatar alexandruast avatar waynewayner avatar ponchik69 avatar vgk88 avatar tuzemunez avatar zenon-provalidator avatar y3v63n avatar wstotti avatar wjdfx avatar westaking avatar sideeffect117 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.