05cadc23a8 | ||
---|---|---|
.. | ||
gentxs | ||
peers | ||
README.md |
README.md
Crust-1 : Setup of the CommitBlockchain
Golang : Installation
- Cores : 4
- RAM : 8-16GB
- Storage Space : 50GB
- Storage Type : SSD or HDD
Add the Golang PPA repository to get the latest version of Golang.
sudo add-apt-repository ppa:longsleep/golang-backports
After adding the PPA, update packages list using the below command.
sudo apt-get update
Install the latest version of Golang and other required packages
sudo apt-get install -y git golang-go make
export GOROOT=/usr/lib/go
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOROOT/bin:$GOBIN
You can also append the above lines to $HOME/.bashrc file and run the following command to reflect in current Terminal session
source $HOME/.bashrc
go env
CommitBlockchain : Installation
-
Install commit-blockchain from the official commitHub repository
go get -u github.com/commitHub/commitBlockchain
-
Navigate to the
commit-blockchain
folder -
Run following command to install the
commitBlockchain
-
git checkout version0
make all
-
Check the version
maind version & maincli version
Commit-Blockchain : Validator at Genesis
-
After the installation of commitBlockchain
maind init --name [moniker]
-
you get
genesis.json
intialized in$HOME/.maind/config/
-
To know the peer Id run the following command
maind tendermint show-node-id
-
To know IP address
ifconfig
-
Fork the official CommitHub genesisTransactions repository.
-
Clone the the repo form your github repository
git clone https://github.com/<your_git_user_name>/genesisTransactions.git
-
Navigate to the folder by using the below command
cd genesisTransactions
-
Checkout to
crust-1
git checkout crust-1
-
Copy the
genesis.json
file from$HOME/.maind/config
cp $HOME/.maind/config/genesis.json genesis.json
-
Create a file name
peers.json
and add the peerId and ip address from above > Finding peerId and IP address sectiontouch peers.json
nano peers.json
copy the node-id and ip address in following format
node-id@ip-address:26656
Note: Node-id and ip-address are need to mentioned given format in peers.json file
-
pull request to repo
git status
contains two files genesis.json, peers.jsongit add .
git commit -m {moniker} as validator
git push origin crust-1
Create the pull request to CommitHub genesisTransactions repository repo
After submitting the PR, the repository maintainers will merge in case of no issues. If not, issues will be commented upon.
Commit-Blockchain : Validator post genesis
-
before testnet start
master
will havegenesis.json
andpeers.json
filewget https://raw.githubusercontent.com/commitHub/genesisTransactions/master/ \ crust-1/genesis.json
-
Copy the genesis
cp genesis.json $HOME/.maind/config/genesis.json
- Add the peers in
$HOME/.maind/config/config.toml
- Open file
$HOME/.maind/config/config.toml
- in persistent_peers = "" line no: 93
- copy the peer from
peers.json
// located in repo - save the file
Example Image to adding peers
-
Start the chain
maind start