forked from cerc-io/laconicd-deprecated
change binary name (#431)
This commit is contained in:
@@ -18,10 +18,10 @@ Ethermint is integrated with a CLI client that can be used to send transactions
|
||||
|
||||
```bash
|
||||
# available query commands
|
||||
emintcli query -h
|
||||
ethermintcli query -h
|
||||
|
||||
# available transaction commands
|
||||
emintcli tx -h
|
||||
ethermintcli tx -h
|
||||
```
|
||||
|
||||
### Client Servers
|
||||
@@ -32,11 +32,11 @@ The Ethermint client supports both [REST endpoints](https://cosmos.network/rpc)
|
||||
|
||||
Ethermint exposes REST endpoints for all the integrated Cosmos-SDK modules. This makes it easier for wallets and block explorers to interact with the proof-of-stake logic.
|
||||
|
||||
To run the REST Server, you need to run the Ethermint daemon (`emintd`) and then execute (in another
|
||||
To run the REST Server, you need to run the Ethermint daemon (`ethermintd`) and then execute (in another
|
||||
process):
|
||||
|
||||
```bash
|
||||
emintcli rest-server --laddr "tcp://localhost:8545" --unlock-key $KEY --chain-id $CHAINID --trace
|
||||
ethermintcli rest-server --laddr "tcp://localhost:8545" --unlock-key $KEY --chain-id $CHAINID --trace
|
||||
```
|
||||
|
||||
You should see the logs from the REST and the RPC server.
|
||||
|
||||
@@ -90,7 +90,7 @@ To start a connection with the Tendermint websocket you need to define the addre
|
||||
flag when initializing the REST server (default `tcp://localhost:26657`):
|
||||
|
||||
```bash
|
||||
emintcli rest-server --laddr "tcp://localhost:8545" --node "tcp://localhost:8080" --unlock-key <my_key> --chain-id <chain_id>
|
||||
ethermintcli rest-server --laddr "tcp://localhost:8545" --node "tcp://localhost:8080" --unlock-key <my_key> --chain-id <chain_id>
|
||||
```
|
||||
|
||||
Then, start a websocket subscription with [ws](https://github.com/hashrocket/ws)
|
||||
@@ -115,7 +115,7 @@ You can start a connection with the Ethereum websocket using the `--wsport` flag
|
||||
the REST server (default `8546`):
|
||||
|
||||
```bash
|
||||
emintcli rest-server --laddr "tcp://localhost:8545" --wsport 8546 --unlock-key <my_key> --chain-id <chain_id>
|
||||
ethermintcli rest-server --laddr "tcp://localhost:8545" --wsport 8546 --unlock-key <my_key> --chain-id <chain_id>
|
||||
```
|
||||
|
||||
Then, start a websocket subscription with [ws](https://github.com/hashrocket/ws)
|
||||
|
||||
@@ -17,8 +17,8 @@ make install
|
||||
Check that the binaries have been successfuly installed:
|
||||
|
||||
```bash
|
||||
emintd -h
|
||||
emintcli -h
|
||||
ethermintd -h
|
||||
ethermintcli -h
|
||||
```
|
||||
|
||||
## Docker
|
||||
@@ -33,8 +33,8 @@ This will install the binaries on the `./build` directory. Now, check that the b
|
||||
successfuly installed:
|
||||
|
||||
```bash
|
||||
emintd -h
|
||||
emintcli -h
|
||||
ethermintd -h
|
||||
ethermintcli -h
|
||||
```
|
||||
|
||||
## Releases
|
||||
|
||||
+12
-12
@@ -26,7 +26,7 @@ to keep your binaries and configuration files.
|
||||
In another terminal window or tab, run the Ethereum JSON-RPC server as well as the SDK REST server:
|
||||
|
||||
```bash
|
||||
emintcli rest-server --laddr "tcp://localhost:8545" --unlock-key mykey --chain-id 8
|
||||
ethermintcli rest-server --laddr "tcp://localhost:8545" --unlock-key mykey --chain-id 8
|
||||
```
|
||||
|
||||
## Manual deployment
|
||||
@@ -39,15 +39,15 @@ The instructions for setting up a brand new full node from scratch are the the s
|
||||
To start your node, just type:
|
||||
|
||||
```bash
|
||||
emintd start
|
||||
ethermintd start
|
||||
```
|
||||
|
||||
## Key Management
|
||||
|
||||
To run a node with the same key every time: replace `emintcli keys add $KEY` in `./init.sh` with:
|
||||
To run a node with the same key every time: replace `ethermintcli keys add $KEY` in `./init.sh` with:
|
||||
|
||||
```bash
|
||||
echo "your mnemonic here" | emintcli keys add $KEY --recover
|
||||
echo "your mnemonic here" | ethermintcli keys add $KEY --recover
|
||||
```
|
||||
|
||||
::: tip Ethermint currently only supports 24 word mnemonics.
|
||||
@@ -56,19 +56,19 @@ echo "your mnemonic here" | emintcli keys add $KEY --recover
|
||||
You can generate a new key/mnemonic with:
|
||||
|
||||
```bash
|
||||
emintcli keys add $KEY
|
||||
ethermintcli keys add $KEY
|
||||
```
|
||||
|
||||
To export your ethermint key as an ethereum private key (for use with Metamask for example):
|
||||
|
||||
```bash
|
||||
emintcli keys unsafe-export-eth-key $KEY
|
||||
ethermintcli keys unsafe-export-eth-key $KEY
|
||||
```
|
||||
|
||||
For more about the available key commands, use the `--help` flag
|
||||
|
||||
```bash
|
||||
emintcli keys -h
|
||||
ethermintcli keys -h
|
||||
```
|
||||
|
||||
### Keyring backend options
|
||||
@@ -81,7 +81,7 @@ relevant command and the password prompt will occur through the command line. Th
|
||||
as a CLI config option with:
|
||||
|
||||
```bash
|
||||
emintcli config keyring-backend file
|
||||
ethermintcli config keyring-backend file
|
||||
```
|
||||
|
||||
## Clearing data from chain
|
||||
@@ -91,7 +91,7 @@ emintcli config keyring-backend file
|
||||
Alternatively, you can **reset** the blockchain database, remove the node's address book files, and reset the `priv_validator.json` to the genesis state.
|
||||
|
||||
::: danger
|
||||
If you are running a **validator node**, always be careful when doing `emintd unsafe-reset-all`. You should never use this command if you are not switching `chain-id`.
|
||||
If you are running a **validator node**, always be careful when doing `ethermintd unsafe-reset-all`. You should never use this command if you are not switching `chain-id`.
|
||||
:::
|
||||
|
||||
::: danger
|
||||
@@ -101,15 +101,15 @@ If you are running a **validator node**, always be careful when doing `emintd un
|
||||
First, remove the outdated files and reset the data.
|
||||
|
||||
```bash
|
||||
rm $HOME/.emintd/config/addrbook.json $HOME/.emintd/config/genesis.json
|
||||
emintd unsafe-reset-all
|
||||
rm $HOME/.ethermintd/config/addrbook.json $HOME/.ethermintd/config/genesis.json
|
||||
ethermintd unsafe-reset-all
|
||||
```
|
||||
|
||||
Your node is now in a pristine state while keeping the original `priv_validator.json` and `config.toml`. If you had any sentry nodes or full nodes setup before, your node will still try to connect to them, but may fail if they haven't also been upgraded.
|
||||
|
||||
### Delete Data
|
||||
|
||||
Data for the Daemon and CLI binaries should be stored at `~/.emintd` and `~/.emintcli`, respectively by default. To **delete** the existing binaries and configuration, run:
|
||||
Data for the Daemon and CLI binaries should be stored at `~/.ethermintd` and `~/.ethermintcli`, respectively by default. To **delete** the existing binaries and configuration, run:
|
||||
|
||||
```bash
|
||||
rm -rf ~/.emint*
|
||||
|
||||
+51
-51
@@ -24,21 +24,21 @@ $MONIKER=testing
|
||||
$KEY=mykey
|
||||
$CHAINID=8
|
||||
|
||||
emintd init $MONIKER --chain-id=$CHAINID
|
||||
ethermintd init $MONIKER --chain-id=$CHAINID
|
||||
```
|
||||
|
||||
::: warning
|
||||
Monikers can contain only ASCII characters. Using Unicode characters will render your node unreachable.
|
||||
:::
|
||||
|
||||
You can edit this `moniker` later, in the `$(HOME)/.emintd/config/config.toml` file:
|
||||
You can edit this `moniker` later, in the `$(HOME)/.ethermintd/config/config.toml` file:
|
||||
|
||||
```toml
|
||||
# A custom human readable name for this node
|
||||
moniker = "<your_custom_moniker>"
|
||||
```
|
||||
|
||||
You can edit the `$HOME/.emintd/config/app.toml` file in order to enable the anti spam mechanism and reject incoming transactions with less than the minimum gas prices:
|
||||
You can edit the `$HOME/.ethermintd/config/app.toml` file in order to enable the anti spam mechanism and reject incoming transactions with less than the minimum gas prices:
|
||||
|
||||
```toml
|
||||
# This is a TOML config file.
|
||||
@@ -57,21 +57,21 @@ minimum-gas-prices = ""
|
||||
|
||||
```bash
|
||||
# Create a key to hold your account
|
||||
emintcli keys add $KEY
|
||||
ethermintcli keys add $KEY
|
||||
|
||||
# Add that key into the genesis.app_state.accounts array in the genesis file
|
||||
# NOTE: this command lets you set the number of coins. Make sure this account has some coins
|
||||
# with the genesis.app_state.staking.params.bond_denom denom, the default is staking
|
||||
emintd add-genesis-account $(emintcli keys show validator -a) 1000000000stake,10000000000photon
|
||||
ethermintd add-genesis-account $(ethermintcli keys show validator -a) 1000000000stake,10000000000photon
|
||||
|
||||
# Generate the transaction that creates your validator
|
||||
emintd gentx --name $KEY
|
||||
ethermintd gentx --name $KEY
|
||||
|
||||
# Add the generated bonding transaction to the genesis file
|
||||
emintd collect-gentxs
|
||||
ethermintd collect-gentxs
|
||||
|
||||
# Finally, check the correctness of the genesis.json file
|
||||
emintd validate-genesis
|
||||
ethermintd validate-genesis
|
||||
```
|
||||
|
||||
### Run Testnet
|
||||
@@ -79,7 +79,7 @@ emintd validate-genesis
|
||||
Now its safe to start the daemon:
|
||||
|
||||
```bash
|
||||
emintd start
|
||||
ethermintd start
|
||||
```
|
||||
|
||||
You can then stop the node using Ctrl+C.
|
||||
@@ -94,15 +94,15 @@ To build start a 4 node testnet run:
|
||||
make localnet-start
|
||||
```
|
||||
|
||||
This command creates a 4-node network using the `emintdnode` Docker image.
|
||||
This command creates a 4-node network using the `ethermintdnode` Docker image.
|
||||
The ports for each node are found in this table:
|
||||
|
||||
| Node ID | P2P Port | REST/RPC Port |
|
||||
|--------------|----------|---------------|
|
||||
| `emintnode0` | `26656` | `26657` |
|
||||
| `emintnode1` | `26659` | `26660` |
|
||||
| `emintnode2` | `26661` | `26662` |
|
||||
| `emintnode3` | `26663` | `26664` |
|
||||
| Node ID | P2P Port | REST/RPC Port |
|
||||
|------------------|----------|---------------|
|
||||
| `ethermintnode0` | `26656` | `26657` |
|
||||
| `ethermintnode1` | `26659` | `26660` |
|
||||
| `ethermintnode2` | `26661` | `26662` |
|
||||
| `ethermintnode3` | `26663` | `26664` |
|
||||
|
||||
To update the binary, just rebuild it and restart the nodes
|
||||
|
||||
@@ -115,10 +115,10 @@ The command above command will run containers in the background using Docker co
|
||||
```bash
|
||||
...
|
||||
Creating network "chainsafe-ethermint_localnet" with driver "bridge"
|
||||
Creating emintdnode0 ... done
|
||||
Creating emintdnode2 ... done
|
||||
Creating emintdnode1 ... done
|
||||
Creating emintdnode3 ... done
|
||||
Creating ethermintdnode0 ... done
|
||||
Creating ethermintdnode2 ... done
|
||||
Creating ethermintdnode1 ... done
|
||||
Creating ethermintdnode3 ... done
|
||||
```
|
||||
|
||||
|
||||
@@ -133,55 +133,55 @@ make localnet-stop
|
||||
### Configuration
|
||||
|
||||
The `make localnet-start` creates files for a 4-node testnet in `./build` by
|
||||
calling the `emintd testnet` command. This outputs a handful of files in the
|
||||
calling the `ethermintd testnet` command. This outputs a handful of files in the
|
||||
`./build` directory:
|
||||
|
||||
```bash
|
||||
tree -L 3 build/
|
||||
|
||||
build/
|
||||
├── emintcli
|
||||
├── emintd
|
||||
├── ethermintcli
|
||||
├── ethermintd
|
||||
├── gentxs
|
||||
│ ├── node0.json
|
||||
│ ├── node1.json
|
||||
│ ├── node2.json
|
||||
│ └── node3.json
|
||||
├── node0
|
||||
│ ├── emintcli
|
||||
│ ├── ethermintcli
|
||||
│ │ ├── key_seed.json
|
||||
│ │ └── keyring-test-cosmos
|
||||
│ └── emintd
|
||||
│ └── ethermintd
|
||||
│ ├── config
|
||||
│ ├── data
|
||||
│ └── emintd.log
|
||||
│ └── ethermintd.log
|
||||
├── node1
|
||||
│ ├── emintcli
|
||||
│ ├── ethermintcli
|
||||
│ │ ├── key_seed.json
|
||||
│ │ └── keyring-test-cosmos
|
||||
│ └── emintd
|
||||
│ └── ethermintd
|
||||
│ ├── config
|
||||
│ ├── data
|
||||
│ └── emintd.log
|
||||
│ └── ethermintd.log
|
||||
├── node2
|
||||
│ ├── emintcli
|
||||
│ ├── ethermintcli
|
||||
│ │ ├── key_seed.json
|
||||
│ │ └── keyring-test-cosmos
|
||||
│ └── emintd
|
||||
│ └── ethermintd
|
||||
│ ├── config
|
||||
│ ├── data
|
||||
│ └── emintd.log
|
||||
│ └── ethermintd.log
|
||||
└── node3
|
||||
├── emintcli
|
||||
├── ethermintcli
|
||||
│ ├── key_seed.json
|
||||
│ └── keyring-test-cosmos
|
||||
└── emintd
|
||||
└── ethermintd
|
||||
├── config
|
||||
├── data
|
||||
└── emintd.log
|
||||
└── ethermintd.log
|
||||
```
|
||||
|
||||
Each `./build/nodeN` directory is mounted to the `/emintd` directory in each container.
|
||||
Each `./build/nodeN` directory is mounted to the `/ethermintd` directory in each container.
|
||||
|
||||
### Logging
|
||||
|
||||
@@ -189,10 +189,10 @@ In order to see the logs of a particular node you can use the following command:
|
||||
|
||||
```bash
|
||||
# node 0: daemon logs
|
||||
docker exec emintdnode0 tail emintd.log
|
||||
docker exec ethermintdnode0 tail ethermintd.log
|
||||
|
||||
# node 0: REST & RPC logs
|
||||
docker exec emintdnode0 tail emintcli.log
|
||||
docker exec ethermintdnode0 tail ethermintcli.log
|
||||
```
|
||||
|
||||
The logs for the daemon will look like:
|
||||
@@ -230,7 +230,7 @@ You can also watch logs as they are produced via Docker with the `--follow` (`-f
|
||||
example:
|
||||
|
||||
```bash
|
||||
docker logs -f emintdnode0
|
||||
docker logs -f ethermintdnode0
|
||||
```
|
||||
|
||||
### Interact With the Testnet
|
||||
@@ -256,18 +256,18 @@ Additional instructions on how to interact with the WebSocket can be found on th
|
||||
|
||||
### Keys & Accounts
|
||||
|
||||
To interact with `emintcli` and start querying state or creating txs, you use the
|
||||
`emintcli` directory of any given node as your `home`, for example:
|
||||
To interact with `ethermintcli` and start querying state or creating txs, you use the
|
||||
`ethermintcli` directory of any given node as your `home`, for example:
|
||||
|
||||
```bash
|
||||
emintcli keys list --home ./build/node0/emintcli
|
||||
ethermintcli keys list --home ./build/node0/ethermintcli
|
||||
```
|
||||
|
||||
Now that accounts exists, you may create new accounts and send those accounts
|
||||
funds!
|
||||
|
||||
::: tip
|
||||
**Note**: Each node's seed is located at `./build/nodeN/emintcli/key_seed.json` and can be restored to the CLI using the `emintcli keys add --restore` command
|
||||
**Note**: Each node's seed is located at `./build/nodeN/ethermintcli/key_seed.json` and can be restored to the CLI using the `ethermintcli keys add --restore` command
|
||||
:::
|
||||
|
||||
### Special Binaries
|
||||
@@ -291,17 +291,17 @@ If you are looking to connect to a persistent public testnet. You will need to m
|
||||
If you want to start a network from scratch, you will need to start the [genesis procedure](#genesis-procedure) by creating a `genesis.json` and submit + collect the genesis transactions from the [validators](./validator-setup.md).
|
||||
:::
|
||||
|
||||
If you want to connect to an existing testnet, fetch the testnet's `genesis.json` file and copy it into the `emintd`'s config directory (i.e `$HOME/.emintd/config/genesis.json`).
|
||||
If you want to connect to an existing testnet, fetch the testnet's `genesis.json` file and copy it into the `ethermintd`'s config directory (i.e `$HOME/.ethermintd/config/genesis.json`).
|
||||
|
||||
Then verify the correctness of the genesis configuration file:
|
||||
|
||||
```bash
|
||||
emintd validate-genesis
|
||||
ethermintd validate-genesis
|
||||
```
|
||||
|
||||
#### Add Seed Nodes
|
||||
|
||||
Your node needs to know how to find peers. You'll need to add healthy seed nodes to `$HOME/.emintd/config/config.toml`. If those seeds aren't working, you can find more seeds and persistent peers on an existing explorer.
|
||||
Your node needs to know how to find peers. You'll need to add healthy seed nodes to `$HOME/.ethermintd/config/config.toml`. If those seeds aren't working, you can find more seeds and persistent peers on an existing explorer.
|
||||
|
||||
For more information on seeds and peers, you can the Tendermint [P2P documentation](https://docs.tendermint.com/master/spec/p2p/peer.html).
|
||||
|
||||
@@ -315,23 +315,23 @@ Once the ethermint daemon is up and running, you can request tokens to your addr
|
||||
|
||||
```bash
|
||||
# query your initial balance
|
||||
emintcli q bank balances $(emintcli keys show <mykey> -a)
|
||||
ethermintcli q bank balances $(ethermintcli keys show <mykey> -a)
|
||||
|
||||
# send a tx to request tokens to your account address
|
||||
emintcli tx faucet request 100photon --from <mykey>
|
||||
ethermintcli tx faucet request 100photon --from <mykey>
|
||||
|
||||
# query your balance after the request
|
||||
emintcli q bank balances $(emintcli keys show <mykey> -a)
|
||||
ethermintcli q bank balances $(ethermintcli keys show <mykey> -a)
|
||||
```
|
||||
|
||||
You can also check to total amount funded by the faucet and the total supply of the chain via:
|
||||
|
||||
```bash
|
||||
# total amount funded by the faucet
|
||||
emintcli q faucet funded
|
||||
ethermintcli q faucet funded
|
||||
|
||||
# total supply
|
||||
emintcli q supply total
|
||||
ethermintcli q supply total
|
||||
```
|
||||
|
||||
## Next {hide}
|
||||
|
||||
@@ -10,7 +10,7 @@ Learn how to upgrade your full node to the latest software version {synopsis}
|
||||
|
||||
These instructions are for full nodes that have ran on previous versions of and would like to upgrade to the latest testnet.
|
||||
|
||||
First, stop your instance of `emintd`. Next, upgrade the software:
|
||||
First, stop your instance of `ethermintd`. Next, upgrade the software:
|
||||
|
||||
```bash
|
||||
cd ethermint
|
||||
@@ -30,7 +30,7 @@ You will need to ensure that the version installed matches the one needed for th
|
||||
If the new version you are upgrading to has breaking changes, you will have to restart your chain. If it is **not** breaking, you can skip to [Restart](#restart-node).
|
||||
:::
|
||||
|
||||
To upgrade the genesis file, you can either fetch it from a trusted source or export it locally using the `emintd export` command.
|
||||
To upgrade the genesis file, you can either fetch it from a trusted source or export it locally using the `ethermintd export` command.
|
||||
|
||||
### Fetch from a Trusted Source
|
||||
|
||||
@@ -39,7 +39,7 @@ If you are joining an existing testnet, you can fetch the genesis from the appro
|
||||
Save the new genesis as `new_genesis.json`. Then, replace the old `genesis.json` with `new_genesis.json`.
|
||||
|
||||
```bash
|
||||
cd $HOME/.emintd/config
|
||||
cd $HOME/.ethermintd/config
|
||||
cp -f genesis.json new_genesis.json
|
||||
mv new_genesis.json genesis.json
|
||||
```
|
||||
@@ -54,19 +54,19 @@ useful for manual analysis of the state at a given height.
|
||||
Export state with:
|
||||
|
||||
```bash
|
||||
emintd export > new_genesis.json
|
||||
ethermintd export > new_genesis.json
|
||||
```
|
||||
|
||||
You can also export state from a particular height (at the end of processing the block of that height):
|
||||
|
||||
```bash
|
||||
emintd export --height [height] > new_genesis.json
|
||||
ethermintd export --height [height] > new_genesis.json
|
||||
```
|
||||
|
||||
If you plan to start a new network for 0 height (i.e genesis) from the exported state, export with the `--for-zero-height` flag:
|
||||
|
||||
```bash
|
||||
emintd export --height [height] --for-zero-height > new_genesis.json
|
||||
ethermintd export --height [height] --for-zero-height > new_genesis.json
|
||||
```
|
||||
|
||||
Then, replace the old `genesis.json` with `new_genesis.json`.
|
||||
@@ -81,7 +81,7 @@ At this point, you might want to run a script to update the exported genesis int
|
||||
You can use the `migrate` command to migrate from a given version to the next one (eg: `v0.X.X` to `v1.X.X`):
|
||||
|
||||
```bash
|
||||
emintd migrate [target-version] [/path/to/genesis.json] --chain-id=<new_chain_id> --genesis-time=<yyyy-mm-ddThh:mm:ssZ>
|
||||
ethermintd migrate [target-version] [/path/to/genesis.json] --chain-id=<new_chain_id> --genesis-time=<yyyy-mm-ddThh:mm:ssZ>
|
||||
```
|
||||
|
||||
## Restart Node
|
||||
@@ -89,7 +89,7 @@ emintd migrate [target-version] [/path/to/genesis.json] --chain-id=<new_chain_id
|
||||
To restart your node once the new genesis has been updated, use the `start` command:
|
||||
|
||||
```bash
|
||||
emintd start
|
||||
ethermintd start
|
||||
```
|
||||
|
||||
## Next {hide}
|
||||
|
||||
@@ -26,15 +26,15 @@ You may want to skip the next section if you have already set up a [full node](.
|
||||
Your `cosmosvalconspub` consensus public key fron tendermint can be used to create a new validator by staking tokens. You can find your validator pubkey by running:
|
||||
|
||||
```bash
|
||||
emintd tendermint show-validator
|
||||
ethermintd tendermint show-validator
|
||||
```
|
||||
|
||||
To create your validator, just use the following command:
|
||||
|
||||
```bash
|
||||
emintcli tx staking create-validator \
|
||||
ethermintcli tx staking create-validator \
|
||||
--amount=1000000photon \
|
||||
--pubkey=$(emintd tendermint show-validator) \
|
||||
--pubkey=$(ethermintd tendermint show-validator) \
|
||||
--moniker=<ethermint_validator> \
|
||||
--chain-id=<chain_id> \
|
||||
--commission-rate="0.10" \
|
||||
@@ -64,31 +64,31 @@ A `gentx` does three things:
|
||||
|
||||
1. Makes the `validator` account you created into a validator operator account (i.e. the account that controls the validator).
|
||||
2. Self-delegates the provided `amount` of staking tokens.
|
||||
3. Link the operator account with a Tendermint node pubkey that will be used for signing blocks. If no `--pubkey` flag is provided, it defaults to the local node pubkey created via the `emintd init` command above.
|
||||
3. Link the operator account with a Tendermint node pubkey that will be used for signing blocks. If no `--pubkey` flag is provided, it defaults to the local node pubkey created via the `ethermintd init` command above.
|
||||
|
||||
If you want to participate in genesis as a validator, you need to justify that
|
||||
you have some stake at genesis, create one (or multiple) transactions to bond this stake to your validator address, and include this transaction in the genesis file.
|
||||
|
||||
Your `cosmosvalconspub`, as shown on the section above, can be used to create a validator transaction on genesis as well.
|
||||
|
||||
Next, craft your `emintd gentx` command:
|
||||
Next, craft your `ethermintd gentx` command:
|
||||
|
||||
::: tip
|
||||
When specifying commission parameters, the `commission-max-change-rate` is used to measure % _point_ change over the `commission-rate`. E.g. 1% to 2% is a 100% rate increase, but only 1 percentage point.
|
||||
:::
|
||||
|
||||
```bash
|
||||
emintd gentx \
|
||||
ethermintd gentx \
|
||||
--amount <amount_of_delegation_uatom> \
|
||||
--commission-rate <commission_rate> \
|
||||
--commission-max-rate <commission_max_rate> \
|
||||
--commission-max-change-rate <commission_max_change_rate> \
|
||||
--pubkey $(emintd tendermint show-validator) \
|
||||
--pubkey $(ethermintd tendermint show-validator) \
|
||||
--name $KEY
|
||||
```
|
||||
|
||||
::: tip
|
||||
For more on `gentx`, use the help flag: `emintd gentx -h`
|
||||
For more on `gentx`, use the help flag: `ethermintd gentx -h`
|
||||
:::
|
||||
|
||||
## Confirm Your Validator is Running
|
||||
@@ -96,11 +96,11 @@ For more on `gentx`, use the help flag: `emintd gentx -h`
|
||||
Your validator is active if the following command returns anything:
|
||||
|
||||
```bash
|
||||
emintcli query tendermint-validator-set | grep "$(emintd tendermint show-validator)"
|
||||
ethermintcli query tendermint-validator-set | grep "$(ethermintd tendermint show-validator)"
|
||||
```
|
||||
|
||||
You should now see your validator in one of the block explorers. You are looking for the `bech32`
|
||||
encoded `address` in the `~/.emintd/config/priv_validator.json` file.
|
||||
encoded `address` in the `~/.ethermintd/config/priv_validator.json` file.
|
||||
|
||||
::: tip
|
||||
To be in the validator set, you need to have more total voting power than the 100th validator.
|
||||
@@ -111,7 +111,7 @@ To be in the validator set, you need to have more total voting power than the 10
|
||||
When attempting to perform routine maintenance or planning for an upcoming coordinated
|
||||
upgrade, it can be useful to have your validator systematically and gracefully halt the chain and shutdown the node.
|
||||
|
||||
You can achieve this by setting one of the following flags during when using the `emintd start` command:
|
||||
You can achieve this by setting one of the following flags during when using the `ethermintd start` command:
|
||||
|
||||
- `--halt-height`: to the block height at which to shutdown the node
|
||||
- `--halt-time`: to the minimum block time (in Unix seconds) at which to shutdown the node
|
||||
|
||||
Reference in New Issue
Block a user