Giter Club home page Giter Club logo

sifnode's Introduction

sifnode

sifnode is a blockchain application built using Cosmos SDK and Tendermint and generated with Starport.

Prerequisites / Dependencies

Getting started

Setup

Connect to Sifchain

New Validators
  1. Ensure you've installed the dependencies listed above.

  2. Clone the repository:

git clone ssh://[email protected]/Sifchain/sifnode && cd sifnode
  1. Checkout the latest testnet release:
git checkout tags/merry-go-round-1
  1. Build:
make clean install
  1. Generate a mnemonic:
rake "keys:generate:mnemonic"
  1. Scaffold your node:
rake "genesis:sifnode:scaffold[merry-go-round, <moniker>, '<mnemonic>', '', [email protected]:26656, http://52.89.19.109:26657/genesis]"
  • Replace <moniker> with the moniker (name) of your node.
  • Replace <mnemonic> with the mnemonic phrase generated in the previous step.

This step will also output the keyring password, so please record this and the moniker somewhere secure.

  1. Connect:
sifnoded start

and your node will start synchronizing with the network. Please note that this may take several hours or more.

Existing Validators
  1. Checkout the latest testnet release:
git fetch && git checkout tags/merry-go-round-1
  1. Build:
make install
  1. Reset your local state (please take a backup of your keyring first):
sifnoded unsafe-reset-all
  1. Download the new genesis file:
curl http://52.89.19.109:26657/genesis | jq '.result.genesis' > ~/.sifnoded/config/genesis.json
  1. Update your persistent peers in the file ~/.sifnoded/config/config.toml so that it reads:
persistent_peers = "[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
  1. Start your node:
sifnoded start

and your node will start synchronizing with the network. Please note that this may take several hours or more.

Verify

You can verify that you're connected by running:

sifnodecli q tendermint-validator-set

and you should see the following primary validator node/s for Sifchain:

validators:
- address: sifvalcons1z8jyamggawyute8m7a6tfk76whdegz4hhu47kx
  pubkey: sifvalconspub1zcjduepq5geuxq3kyuwayc9ht82y997ncmh3qfe4eqg837kmf6d3tnyspemq6e83zz
  proposerpriority: 5625
  votingpower: 5000
- address: sifvalcons1rya4cf6ejuzsn3qv5c97j3spsr70dwftdygktq
  pubkey: sifvalconspub1zcjduepqewcxpth6dtk82f826gh5te07xyuk04t9y8dg63ndkngsr79dtu0skarrel
  proposerpriority: 4375
  votingpower: 5000
- address: sifvalcons1tzsa80axse3urga7vcck2r638awkgfj6sddm8q
  pubkey: sifvalconspub1zcjduepqdp72sdqtwjujpqlzfg0ku8smark7832ck4440nnqh5yz7yly78fsc0sjqx
  proposerpriority: 3125
  votingpower: 5000
- address: sifvalcons1s00sdg5z5wv89yxjc66ft6uaf0lcqphvef4f9h
  pubkey: sifvalconspub1zcjduepq25y7tsy0c9f0d7u43x7csfpry7t5ur4lcemfdjcrkctjv4hv7taqxvvhx7
  proposerpriority: -13125
  votingpower: 5000

Congratulations. You are now connected to the network.

Additional Peers

The following can be used as additional peers on the network:

Become a Validator

You won't be able to participate in consensus until you become a validator.

  1. Reach out to us on Discord to request some tokens.

  2. Obtain your node moniker (if you don't already know it):

cat ~/.sifnoded/config/config.toml | grep moniker
  1. Run the following command to become a validator:
sifnodecli tx staking create-validator \
    --commission-max-change-rate="0.1" \
    --commission-max-rate="0.1" \
    --commission-rate="0.1" \
    --amount=1000000000rowan \
    --pubkey=$(sifnoded tendermint show-validator) \
    --moniker=<moniker> \
    --chain-id=merry-go-round \
    --min-self-delegation="1" \
    --gas="auto" \
    --from=<moniker> \
    --keyring-backend=file
  • Replace <moniker> with the moniker (name) of your node.

Block Explorer

A block explorer is available at:

Additional Resources

You can also ask questions on Discord here.

sifnode's People

Contributors

intl-man avatar utx0 avatar dependabot[bot] avatar elliotfriedman avatar ryardley avatar juniuszhou avatar banshee avatar jedi2002 avatar ilchebedelovski avatar jkbrooks avatar lancefrench avatar khdegraaf avatar austinobombino avatar 59023g avatar eddcs avatar hellokashif avatar sauravtom avatar revnode avatar novelja avatar 0xhiroooo avatar ilyabukalov avatar

Watchers

James Cloos 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.