|
@ -127,7 +127,7 @@ definition](https://github.com/tendermint/tendermint/blob/master/types/genesis.g |
|
|
To run a Tendermint node, use: |
|
|
To run a Tendermint node, use: |
|
|
|
|
|
|
|
|
```bash |
|
|
```bash |
|
|
tendermint node |
|
|
|
|
|
|
|
|
tendermint start |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
By default, Tendermint will try to connect to an ABCI application on |
|
|
By default, Tendermint will try to connect to an ABCI application on |
|
@ -136,7 +136,7 @@ another window. If you don't, kill Tendermint and run an in-process version of |
|
|
the `kvstore` app: |
|
|
the `kvstore` app: |
|
|
|
|
|
|
|
|
```bash |
|
|
```bash |
|
|
tendermint node --proxy-app=kvstore |
|
|
|
|
|
|
|
|
tendermint start --proxy-app=kvstore |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
After a few seconds, you should see blocks start streaming in. Note that blocks |
|
|
After a few seconds, you should see blocks start streaming in. Note that blocks |
|
@ -150,10 +150,10 @@ Go, run it in another process, and use the `--proxy-app` flag to specify the |
|
|
address of the socket it is listening on, for instance: |
|
|
address of the socket it is listening on, for instance: |
|
|
|
|
|
|
|
|
```bash |
|
|
```bash |
|
|
tendermint node --proxy-app=/var/run/abci.sock |
|
|
|
|
|
|
|
|
tendermint start --proxy-app=/var/run/abci.sock |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
You can find out what flags are supported by running `tendermint node --help`. |
|
|
|
|
|
|
|
|
You can find out what flags are supported by running `tendermint start --help`. |
|
|
|
|
|
|
|
|
## Transactions |
|
|
## Transactions |
|
|
|
|
|
|
|
@ -270,7 +270,7 @@ transactions or the app hash changes, run Tendermint with this |
|
|
additional flag: |
|
|
additional flag: |
|
|
|
|
|
|
|
|
```sh |
|
|
```sh |
|
|
tendermint node --consensus.create_empty_blocks=false |
|
|
|
|
|
|
|
|
tendermint start --consensus.create_empty_blocks=false |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
or set the configuration via the `config.toml` file: |
|
|
or set the configuration via the `config.toml` file: |
|
@ -445,7 +445,7 @@ persistent connections with. |
|
|
For example, |
|
|
For example, |
|
|
|
|
|
|
|
|
```sh |
|
|
```sh |
|
|
tendermint node --p2p.seeds "f9baeaa15fedf5e1ef7448dd60f46c01f1a9e9c4@1.2.3.4:26656,0491d373a8e0fcf1023aaf18c51d6a1d0d4f31bd@5.6.7.8:26656" |
|
|
|
|
|
|
|
|
tendermint start --p2p.seeds "f9baeaa15fedf5e1ef7448dd60f46c01f1a9e9c4@1.2.3.4:26656,0491d373a8e0fcf1023aaf18c51d6a1d0d4f31bd@5.6.7.8:26656" |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
Alternatively, you can use the `/dial_seeds` endpoint of the RPC to |
|
|
Alternatively, you can use the `/dial_seeds` endpoint of the RPC to |
|
@ -465,7 +465,7 @@ maintain a persistent connection with each, you can use the |
|
|
stopping Tendermint core instance. |
|
|
stopping Tendermint core instance. |
|
|
|
|
|
|
|
|
```sh |
|
|
```sh |
|
|
tendermint node --p2p.persistent-peers "429fcf25974313b95673f58d77eacdd434402665@10.11.12.13:26656,96663a3dd0d7b9d17d4c8211b191af259621c693@10.11.12.14:26656" |
|
|
|
|
|
|
|
|
tendermint start --p2p.persistent-peers "429fcf25974313b95673f58d77eacdd434402665@10.11.12.13:26656,96663a3dd0d7b9d17d4c8211b191af259621c693@10.11.12.14:26656" |
|
|
|
|
|
|
|
|
curl 'localhost:26657/dial_peers?persistent=true&peers=\["429fcf25974313b95673f58d77eacdd434402665@10.11.12.13:26656","96663a3dd0d7b9d17d4c8211b191af259621c693@10.11.12.14:26656"\]' |
|
|
curl 'localhost:26657/dial_peers?persistent=true&peers=\["429fcf25974313b95673f58d77eacdd434402665@10.11.12.13:26656","96663a3dd0d7b9d17d4c8211b191af259621c693@10.11.12.14:26656"\]' |
|
|
``` |
|
|
``` |
|
@ -543,7 +543,7 @@ Update the `genesis.json` in `~/.tendermint/config`. Copy the genesis |
|
|
file and the new `priv_validator_key.json` to the `~/.tendermint/config` on |
|
|
file and the new `priv_validator_key.json` to the `~/.tendermint/config` on |
|
|
a new machine. |
|
|
a new machine. |
|
|
|
|
|
|
|
|
Now run `tendermint node` on both machines, and use either |
|
|
|
|
|
|
|
|
Now run `tendermint start` on both machines, and use either |
|
|
`--p2p.persistent-peers` or the `/dial_peers` to get them to peer up. |
|
|
`--p2p.persistent-peers` or the `/dial_peers` to get them to peer up. |
|
|
They should start making blocks, and will only continue to do so as long |
|
|
They should start making blocks, and will only continue to do so as long |
|
|
as both of them are online. |
|
|
as both of them are online. |
|
|