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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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