Skip to content

Jedi2002/sifnode

 
 

Repository files navigation

sifnode

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

Prerequisites / Dependencies

  • Ruby 2.6.x
  • Golang
    • Add export GOPATH=~/go to your shell
    • Add export PATH=$PATH:$GOPATH/bin to your shell
  • jq
  • curl

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-3
  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://44.226.150.203: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-3
  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://44.226.150.203: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: sifvalcons1ya2a3w32py5w32lzhxttl04n80vxx5ke8xlt3k
  pubkey: sifvalconspub1zcjduepqw4p8n5s5zpdm9f9r0s0x8lz0e08vmp9j7zrpfmsyg3np0xvmvndqsjkvgw
  proposerpriority: 1625000
  votingpower: 1000000
- address: sifvalcons1xnn99v7n50m79pxmveeqdj0f6xuefhn4vay6d6
  pubkey: sifvalconspub1zcjduepqpug6d7p5gt69j9jzpltxlheukz86u3emq2qe89d5jlx7cctfyceq4warur
  proposerpriority: -2125000
  votingpower: 1000000
- address: sifvalcons1jycgr4z4trfrwk3x04x3nssyv6uyzf2yzen9j3
  pubkey: sifvalconspub1zcjduepq6h5q8vf9z7h5kt9d986vl7x6x0zx9w9x805f9wn5ys5rw4mme0yqxddd2g
  proposerpriority: -875000
  votingpower: 1000000
- address: sifvalcons1hdh8xnvg3ckrl0pjnryc225qdg0rr0rgsdmqwz
  pubkey: sifvalconspub1zcjduepq69qwgexfxxfh9jtp4nu0jrvf4hq8m9k4079z995ss0qx0qp5qd7sln7cm2
  proposerpriority: 1375000
  votingpower: 1000000

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="10000000000000000000rowan" \
    --pubkey=$(sifnoded tendermint show-validator) \
    --moniker=<moniker> \
    --chain-id=merry-go-round \
    --min-self-delegation="1" \
    --gas-prices="0.5rowan" \
    --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.

About

SifNode - The future of Defi

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 49.5%
  • TypeScript 13.7%
  • JavaScript 12.5%
  • Vue 9.7%
  • Python 5.1%
  • Solidity 3.1%
  • Other 6.4%