Skip to content

Levash0v/sifnode

 
 

Repository files navigation

sifnode

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

Requirements

Getting started

Setup

Connect to Sifchain

  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/monkey-bars-testnet-4
  1. Build:
make install
  1. If you're a new operator (and only if - as otherwise this will reset your node!):

    5.1 Change to the build directory:

    cd ./build
    

    5.2 Scaffold your new node:

    rake 'genesis:sifnode:scaffold[monkey-bars, [email protected]:26656, http://35.166.247.98:26657/genesis]'
    
  2. If you're an existing node operator:

    6.1 Reset your node state:

    sifnoded unsafe-reset-all
    

    6.2 Download the latest genesis file:

    wget -O ~/.sifnoded/config/genesis.json https://raw.githubusercontent.com/Sifchain/networks/feature/genesis/testnet/monkey-bars-testnet-4/genesis.json
    

    6.3 Update your persistent peers in the file ~/.sifnoded/config/config.toml so that it reads:

    persistent_peers = "[email protected]:26656,[email protected]:28002,[email protected]:28004,[email protected]:28006"
    
  3. Start your node:

sifnoded start

and within a few seconds, your node should start synchronizing with the network.

You can verify that you're connected by running:

sifnodecli q tendermint-validator-set

and you should see the following main validator nodes for Sifchain:

validators:
- address: sifvalcons1z6jhzs0f7v02ny6k5x5rekf7gyx9400zyxmzve
  pubkey: sifvalconspub1zcjduepq4zyan4mlm8fpku5jd7zu7f59k863x4g2wrzkku0285z6xylppk6q6nkzrk
  proposerpriority: -5000
  votingpower: 5000
- address: sifvalcons192ljdnz3u6d7l7vg9zgstlnqyczqhwz4wj5ltz
  pubkey: sifvalconspub1zcjduepq8zdt2xty2kk87zrzn95crwjkpmhmzxu6w05wtn08dxhq0qnj090sxg634l
  proposerpriority: -5000
  votingpower: 5000
- address: sifvalcons1v38zwh0f9hwq5x6hfna35pr9x5r5wpydqfgyat
  pubkey: sifvalconspub1zcjduepqefzlm5pymv84kfxdrzm627pw9ty6v2zd49dzuc3aan9z2pftk4rqckj2gz
  proposerpriority: -5000
  votingpower: 5000
- address: sifvalcons1kulx53jp3vnhmagsha5ncnsuewqf3s00nwzffv
  pubkey: sifvalconspub1zcjduepqrs8w58a59cu3wtt03rtm0c03gyt84f8pxwvtp7cptly39vhcdyxsyqmf62
  proposerpriority: 15000
  votingpower: 5000

you are now connected to 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 (replace <moniker> with your node's actual moniker):
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 monkey-bars \
    --min-self-delegation 1 \
    --gas auto \
    --from "moniker" \
    --keyring-backend file

Peers

New node operators may also use the following peer addresses:

Additional Resources

You can also ask questions on Discord here.

About

SifNode - The future of Defi

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 66.3%
  • JavaScript 15.1%
  • TypeScript 7.2%
  • Solidity 4.7%
  • Python 1.6%
  • Vue 1.3%
  • Other 3.8%