/lsbchain

Primary LanguageGoApache License 2.0Apache-2.0

LSBChain

Version License: Apache-2.0 GoDoc Go report card
Lines Of Code

This repository hosts lsbchain, the implementation of the lsbchain based on the Cosmos SDK.

Note: Requires Go 1.15+

INSTALL LSBCHAIN

This guide will explain how to install the lsbchaind and lsbchaincli entrypoints onto your system.

Step 1 : Install Go

Install go by following the official docs. Remember to set your $PATH environment variable, for example:

mkdir -p $HOME/go/bin  
echo "export PATH=$PATH:$(go env GOPATH)/bin" >> ~/.bash_profile  
echo "export GOPATH=$HOME/go" >> ~/.bash_profile  
echo "export GOBIN=$GOPATH/bin" >> ~/.bash_profile  
echo "export PATH=$PATH:$GOBIN" >> ~/.bash_profile  
source ~/.bash_profile  

Under Windows, you may set environment variables(HOME or GO111MODULE) through the “Environment Variables” button on the “Advanced” tab of the “System” control panel. Some versions of Windows provide this control panel through the “Advanced System Settings” option inside the “System” control panel.

$env:GO111MODULE="on"

Step 2 : Build install lsbchaind and lsbchaincli

Next, let’s install the latest version of LSBChain. Make sure you git checkout the latest released version.

git clone -b <latest-release-tag> https://github.com/Khaos-Labs/lsbchain
export GO111MODULE=on
cd lsbchain && make install

If this command fails due to the following error message, you might have already set LDFLAGS prior to running this step.

flag provided but not defined: -L
usage: link [options] main.o
...
make: *** [install] Error 2

Unset this environment variable and try again.

LDFLAGS="" make install

NOTE: If you still have issues at this step, please check that you have the latest stable version of GO installed.

Step 3 : Verify lsbchaind and lsbchaincli

That will install the lsbchaind and lsbchaincli binaries. Verify that everything is OK:

$ lsbchaind version --long
$ lsbchaincli version --long

lsbchaincli for instance should output something similar to:

name: lsbchain
server_name: lsbchaind
client_name: lsbchaincli
version: 1.0.0
commit: 3a419991283c48c6d9facfff8771f8a21e30a9a7
build_tags: netgo,ledger
go: go version go1.15.8 darwin/amd64
build_deps:
- github.com/cosmos/cosmos-sdk@v0.39.2
- github.com/tendermint/tendermint@v0.33.9
- ...

REFERENCES

Cosmos

Cosmos Hub

Cosmos SDK

Tendermint Core

Cosmos Rest Api