bcpd

command
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

README

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"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package app links together all the various components to construct a bcp-demo app.
Package app links together all the various components to construct a bcp-demo app.
Package commands has integration tests of the bcpd application.
Package commands has integration tests of the bcpd application.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL