Skip to content
/ gsl Public

gsl -- Goodsteel ledger. Krinkle Goodsteel will help you to build your own distributed ledger.

License

Notifications You must be signed in to change notification settings

Sinopsys/gsl

Repository files navigation

gsl

Run Status License: GPL v3

gsl -- Goodsteel ledger. Krinkle Goodsteel will help you to build your own distributed ledger.

Build and use with Python3.6.X+ interpreter.

Installation

Execute following commands linebyline

git clone https://github.com/Sinopsys/gsl.git
cd gsl
export PYTHONPATH=$PYTHONPATH":$(pwd)/src"
[[ $PATH != *".local/bin"* ]] && export PATH=$PATH":/home/$USER/.local/bin"
echo "mkdir /tmp/gsl" && mkdir /tmp/gsl
echo "sudo mkdir /etc/gsl" && sudo mkdir /etc/gsl
echo "sudo cp ./example_config.yaml /etc/gsl/config.yaml" && sudo cp ./example_config.yaml /etc/gsl/config.yaml

python3.6 -m pip install . --user

## OPTIONAL, if you do not want to set it manually every time
## Just echoes above exports to your $SHELLrc file
rc_file="/home/$USER/.$(echo $SHELL | rev | cut -d / -f 1 | rev)rc"
echo "export PATH=\$PATH\":/home/$USER/.local/bin\"" >> $rc_file
echo "export PYTHONPATH=\$PYTHONPATH\":$(pwd)/src/\"" >> $rc_file

Then, to successfully launch app, it is needed to have a config with path /etc/gsl/config.yaml. During installation, an example config has already been put to that path.

Example config.yaml:

# Key init_dir is path where your blockchain will be stored.
#
init_dir: /tmp/gsl

If you encounter error like ModuleNotFoundError: No module named 'goodsteel_ledger' then firstly, cd into gsl directory and then run

export PYTHONPATH=$PYTHONPATH":$(pwd)/src"

Usage

Tip: before usage make a git pull

gsl --init --name NAME [--path PATH] # path can also be taken from config.

Questions

Write kupriyanovkirill@gmail.com, mephisto@openmail.cc, https://t.me/SsinopsysS, or create an issue

About

gsl -- Goodsteel ledger. Krinkle Goodsteel will help you to build your own distributed ledger.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published