Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Finschia/lfb

Repository files navigation

LFB(LINE Financial Blockchain)

codecov

This repository hosts LFB(LINE Financial Blockchain). This repository is forked from gaia at 2021-03-15. LFB is a mainnet app implementation using lbm-sdk and ostracon.

Node: Requires Go 1.15+

Warnings: Initial development is in progress, but there has not yet been a stable.

Quick Start

Docker

Build Docker Image

make build-docker GITHUB_TOKEN=${YOUR_GITHUB_TOKEN}                # build docker image

or

make build-docker WITH_CLEVELDB=yes GITHUB_TOKEN=${YOUR_GITHUB_TOKEN}  # build docker image with cleveldb

Configure

./.initialize.sh docker          # prepare keys, validators, initial state, etc.

or

./.initialize.sh docker testnet  # prepare keys, validators, initial state, etc. for testnet

Run

docker-compose up                # Run a node

visit with your browser

Local

Set up permissions

go env -w GOPRIVATE="github.com/line/*"
git config --global url."https://${YOUR_GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/"

Note1

You have to replace ${YOUR_GITHUB_TOKEN} with your token.

To create a token, see: https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token

Note2

Please check GOPRIVATE is set by run export and check the result.

go env

if you can see GOPRIVATE, then you're good to go.

Otherwise you need to set GOPRIVATE as environment variable.

Build

make build
make install 

Configure

./.initialize.sh

or

./.initialize.sh testnet  # for testnet

Run

lfb start                # Run a node

visit with your browser