Sign inSign up

iov1/bcpd

By iov1

Updated over 7 years ago

Blockchain of value reference implementation

Image
0

3.9K

iov1/bcpd repository overview

Blockchain of value reference implementation

Running a local instance

This app relies on a separate tendermint process to drive it. It is helpful to first read a primer on tendermint as well as the documentation on the tendermint CLI.

Dependencies

Versions of both are pinned down in the weave respository.

Running manually

In order to run a node, its state must be first initialized. This is done by running init commands.

Make sure to set TM_VERSION to the right tendermint version (ie. 0.27.4). You can change BCP_HOME to any directory. This is where the application state is saved.

$ export TM_VERSION='x.xx.x'
$ export BCP_HOME="$HOME/bcp_home"
$ mkdir -p $BCP_HOME
$ docker run \
    -v $BCP_HOME:/tmhome \
    -it \
    --rm \
    iov1/tendermint:$TM_VERSION init \
        --home /tmhome
$ docker run \
    --rm \
    -it \
    -v $BCP_HOME:/bcphome \
    iov1/bcpd:latest \
        -home=/bcphome init

Once the state is initialized, bcpd instance can be started.

$ docker run \
    --rm \
    -it \
    -v $BCP_HOME:/bcphome \
    iov1/bcpd:latest \
        -home=/bcphome start \
        -bind=unix:///bcphome/app.sock
$ docker run -v $BCP_HOME:/tmhome \
    -p 26656:26656 \
    -p 26657:26657 \
    -it \
    --rm \
    iov1/tendermint:$TM_VERSION node \
        --home /tmhome \
        --proxy_app="unix:///tmhome/app.sock" \
        --moniker="local"

Tag summary

Content type

Image

Digest

Size

10.8 MB

Last updated

over 7 years ago

docker pull iov1/bcpd