--abci-server -> --without-tendermint

This commit is contained in:
Ethan Buchman 2017-03-14 01:47:10 -04:00
parent 4ec5949471
commit e0df8da40a
6 changed files with 11 additions and 11 deletions

View File

@ -6,7 +6,7 @@ BREAKING CHANGES:
- Remove `--data` flag and use `BASECOIN_ROOT` to set the home directory (defaults to `~/.basecoin`)
- Remove `--in-proc` flag and start Tendermint in-process by default (expect Tendermint files in $BASECOIN_ROOT/tendermint).
To start just the ABCI app/server, use `basecoin start --abci-server`.
To start just the ABCI app/server, use `basecoin start --without-tendermint`.
FEATURES:

View File

@ -21,9 +21,9 @@ var (
// TODO: move to config file
// eyesCacheSizePtr := flag.Int("eyes-cache-size", 10000, "MerkleEyes db cache size, for embedded")
ABCIServerFlag = cli.BoolFlag{
Name: "abci-server",
Usage: "Run the Basecoin app and ABCI server, but not Tendermint (run Tendermint in another process)",
WithoutTendermintFlag = cli.BoolFlag{
Name: "without-tendermint",
Usage: "Run the Basecoin app without Tendermint",
}
)

View File

@ -33,7 +33,7 @@ var StartCmd = cli.Command{
Flags: []cli.Flag{
AddrFlag,
EyesFlag,
ABCIServerFlag,
WithoutTendermintFlag,
ChainIDFlag,
},
}
@ -87,7 +87,7 @@ func cmdStart(c *cli.Context) error {
fmt.Printf("No genesis file at %s, skipping...\n", genesisFile)
}
if c.Bool("abci-server") {
if c.Bool("without-tendermint") {
// run just the abci app/server
if err := startBasecoinABCI(c, basecoinApp); err != nil {
return err

View File

@ -83,11 +83,11 @@ echo "... starting chains"
echo ""
# start the first node
TMROOT=./data/chain1/tendermint tendermint node --skip_upnp --log_level=info &> $LOG_DIR/chain1_tendermint.log &
BASECOIN_ROOT=$BCROOT1 basecoin start --abci-server &> $LOG_DIR/chain1_basecoin.log &
BASECOIN_ROOT=$BCROOT1 basecoin start --without-tendermint &> $LOG_DIR/chain1_basecoin.log &
# start the second node
TMROOT=./data/chain2/tendermint tendermint node --skip_upnp --log_level=info --node_laddr tcp://localhost:36656 --rpc_laddr tcp://localhost:36657 --proxy_app tcp://localhost:36658 &> $LOG_DIR/chain2_tendermint.log &
BASECOIN_ROOT=$BCROOT2 basecoin start --address tcp://localhost:36658 --abci-server &> $LOG_DIR/chain2_basecoin.log &
BASECOIN_ROOT=$BCROOT2 basecoin start --address tcp://localhost:36658 --without-tendermint &> $LOG_DIR/chain2_basecoin.log &
echo ""
echo "... waiting for chains to start"

View File

@ -18,7 +18,7 @@ tendermint init
In one window, run
```
basecoin start --abci-server
basecoin start --without-tendermint
```
and in another,

View File

@ -195,14 +195,14 @@ We can start the two chains as follows:
```
TMROOT=./data/chain1/tendermint tendermint node &> chain1_tendermint.log &
BASECOIN_ROOT=./data/chain1/basecoin basecoin start --abci-server &> chain1_basecoin.log &
BASECOIN_ROOT=./data/chain1/basecoin basecoin start --without-tendermint &> chain1_basecoin.log &
```
and
```
TMROOT=./data/chain2/tendermint tendermint node --node_laddr tcp://localhost:36656 --rpc_laddr tcp://localhost:36657 --proxy_app tcp://localhost:36658 &> chain2_tendermint.log &
BASECOIN_ROOT=./data/chain2/basecoin basecoin start --abci-server --address tcp://localhost:36658 &> chain2_basecoin.log &
BASECOIN_ROOT=./data/chain2/basecoin basecoin start --without-tendermint --address tcp://localhost:36658 &> chain2_basecoin.log &
```
Note how we refer to the relevant data directories. Also note how we have to set the various addresses for the second node so as not to conflict with the first.