Search…
How to build

Platform preparation

    GoLang 1.14+
    Mac OSX
    1
    brew install go
    Copied!
    Python 3.7+ Virtual Environment
    Mac OSX
    1
    brew install python
    2
    pip install virtualenv setuptools wheel
    Copied!

Environment

Source checkout

First of all, you need to check out the source.
1
git clone $REPOSITORY_URL goloop
Copied!

Prepare virtual environment

1
cd $HOME/goloop
2
virtualenv -p python3 venv
3
. venv/bin/activate
Copied!

Install required packages

1
pip install -r pyee/requirements.txt
Copied!

Build

Build executables

1
make
Copied!
Output binaries are placed under bin/ directory.

Build python package

1
make pyexec
Copied!
Output files are placed under build/pyee/dist/ directory.

Quick start

First step, you need to make a configuration for the node.
1
./bin/gochain --save_key_store wallet.json --save config.json
Copied!
It generates a configuration file, config.json, along with a wallet keystore file, wallet.json. If you don't specify any password, it uses gochain as a default password for the keystore. You may apply more options while it generates. Please run ./bin/gochain --help for more information.
Now, you may start the server with it.
1
./bin/gochain --config config.json
Copied!
You may send transactions with the wallet, wallet.json, for the initial balance of other wallets.
Note that this is a single node configuration. If you want to make a network with multiple nodes, you need to make your own genesis and node configurations.
Last modified 3mo ago