Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added phase-2 instructions #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 134 additions & 1 deletion bigbang-1/phase-2/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,134 @@
[TBD]
# Phase-2 : Instructions

## Software Requirements:
- Go version v1.15.+

## Useful Links
### Explorers: [Aneka](https://bigbang.aneka.io) [BigDipper](https://bigbang.bigdipper.live)
### Faucet: https://faucet.bigbang.vitwit.com


### Install Akash
```
$ mkdir -p $GOPATH/src/github.com/ovrclk
$ cd $GOPATH/src/github.com/ovrclk
$ git clone https://github.com/ovrclk/akash && cd akash
$ git checkout v0.10.0-rc3
$ make install
```

To verify if the installation was successful, execute the following command:
```
$ akash version --long
```
It will display the version of akashd currently installed:
```
name: akash
server_name: akash
version: 0.10.0
commit: af43b89e47e50bfeedcc35c7ee77229bd258ed0d
build_tags: netgo,ledger
go: go version go1.15.5 linux/amd64
build_deps:
- github.com/99designs/[email protected]
- github.com/ChainSafe/[email protected]
- github.com/Workiva/[email protected]
...
```


### Start your validator node
Follow the instructions below to start your validator node.

#### Init Chain
```shell
$ akash init <moniker-name> --chain-id=bigbang-4
```
#### Genesis & Seeds
Fetch `genesis.json` into `akashd`'s `config` directory.
```
$ curl https://raw.githubusercontent.com/cosmos/testnets/master/bigbang-1/phase-2/genesis.json > $HOME/.akash/config/genesis.json
```

Add seed nodes in `config.toml`.


```
$ nano $HOME/.akash/config/config.toml
```
Find the following section and add the seed nodes.
```
# Comma separated list of seed nodes to connect to
seeds = "[email protected]:26656"
```
```
# Comma separated list of persistent peers to connect to
persistent_peers = "[email protected]:26656" // Witval peer
```

#### Start Your Node

Create a systemd service

```shell
echo "[Unit]
Description=Akash Node
After=network-online.target
[Service]
User=${USER}
ExecStart=$(which akash) start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
" >akash.service
```

```
$ sudo mv akash.service /lib/systemd/system/
$ sudo systemctl daemon-reload
$ sudo systemctl enable akash.service
$ sudo systemctl start akash.service
```
```
$ sudo systemctl enable akash
$ sudo systemctl start akash
```
Check node status
```
$ systemctl status akash
```
Check logs
```
$ sudo journalctl -u akash -f
```

## Create Testnet Validator

1. Create a local key pair in the Keyring

```shell
$ akash keys add <key-name>
$ akash keys show <key-name> -a
```

3. Request tokens from faucet: https://faucet.bigbang.vitwit.com

4. Create validator

```shell
$ akash tx staking create-validator \
--amount 900000000uakt \
--commission-max-change-rate "0.1" \
--commission-max-rate "0.20" \
--commission-rate "0.1" \
--min-self-delegation "1" \
--details "Some details about yourvalidator" \
--pubkey=$(akashd tendermint show-validator) \
--moniker <your_moniker> \
--chain-id bigbang-4 \
--from <key-name>
```


Loading