sifnode is a blockchain application built using Cosmos SDK and Tendermint and generated with Starport.
- Ruby 2.6.x
- Golang
- Add
export GOPATH=~/go
to your shell - Add
export PATH=$PATH:$GOPATH/bin
to your shell
- Add
- jq
- curl
-
Ensure you've installed the dependencies listed above.
-
Clone the repository:
git clone ssh://[email protected]/Sifchain/sifnode && cd sifnode
- Checkout the latest testnet release:
git checkout tags/merry-go-round-3
- Build:
make clean install
- Generate a mnemonic:
rake "keys:generate:mnemonic"
- 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.
- Connect:
sifnoded start
and your node will start synchronizing with the network. Please note that this may take several hours or more.
- Checkout the latest testnet release:
git fetch && git checkout tags/merry-go-round-3
- Build:
make install
- Reset your local state (please take a backup of your keyring first):
sifnoded unsafe-reset-all
- Download the new genesis file:
curl http://44.226.150.203:26657/genesis | jq '.result.genesis' > ~/.sifnoded/config/genesis.json
- 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"
- Start your node:
sifnoded start
and your node will start synchronizing with the network. Please note that this may take several hours or more.
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.
The following can be used as additional peers on the network:
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:26656
You won't be able to participate in consensus until you become a validator.
-
Reach out to us on Discord to request some tokens.
-
Obtain your node moniker (if you don't already know it):
cat ~/.sifnoded/config/config.toml | grep moniker
- 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.
A block explorer is available at:
- Additional instructions on standing up Sifnode.
- Instructions on using Ethereum <> Sifchain cross-chain functionality.
You can also ask questions on Discord here.