diff --git a/README.md b/README.md index f5d4fc4a..e067875e 100644 --- a/README.md +++ b/README.md @@ -85,27 +85,33 @@ When connecting externally, choose a trustworthy node operator. Unscrupulous ope ### Running the Node Yourself ``` + +mv sedad-${ARCH} sedad + + + -chmod +x sedad-${ARCH} - - +chmod +x sedad + -./sedad-${ARCH} tendermint unsafe-reset-all +./sedad tendermint unsafe-reset-all rm -rf ~/.sedad || true -./sedad-${ARCH} keys add +./sedad keys add -./sedad-${ARCH} join --network [--recover] +./sedad join --network [--recover] -./sedad-${ARCH} start +./sedad start ``` ### Creating a validator +We advise you against using Horcrux signing service as several validators have reported unstable signing. We suspect Horcrux is not yet stable under Cosmos SDK version 0.50. + In order to create your validator, make sure you are fully synced to the latest block height of the network. You can check by using the following command: @@ -124,7 +130,7 @@ Create a `validator.json` file and fill in the create-validator tx parameters: ``` { - "pubkey": $(./sedad-${ARCH} tendermint show-validator), + "pubkey": $(./sedad tendermint show-validator), "amount": "1000000000000000000000000000000000aseda", "moniker": "the moniker for your validator", "identity": "optional identity signature (ex. UPort or Keybase) This key will be used by block explorers to identify the validator.", @@ -141,13 +147,13 @@ Create a `validator.json` file and fill in the create-validator tx parameters: Use the following command to create a validator: ``` -./sedad-${ARCH} tx staking create-validator validator.json --from --chain-id --node +./sedad tx staking create-validator validator.json --from --chain-id --node ``` That’s it now you can find your validator operator address using the following command, which you can advertise to receive delegations: ``` -./sedad-${ARCH} keys show --bech val -a +./sedad keys show --bech val -a ``` ### Running the Node with Cosmovisor @@ -177,7 +183,7 @@ source ~/.profile Initialize Cosmovisor with the chain binary and start the node. ``` -cosmovisor init sedad-${ARCH} +cosmovisor init sedad cosmovisor run start ``` diff --git a/cmd/sedad/cmd/root.go b/cmd/sedad/cmd/root.go index 2d5cc8a6..96deff83 100644 --- a/cmd/sedad/cmd/root.go +++ b/cmd/sedad/cmd/root.go @@ -93,7 +93,7 @@ func NewRootCmd() *cobra.Command { WithViper("") rootCmd := &cobra.Command{ - Use: app.Name + "d", + Use: "sedad", Short: "Start sedachain node", PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { // set the default command outputs diff --git a/x/vesting/keeper/msg_server.go b/x/vesting/keeper/msg_server.go index b816fe08..8fdce75a 100644 --- a/x/vesting/keeper/msg_server.go +++ b/x/vesting/keeper/msg_server.go @@ -110,7 +110,6 @@ func (m msgServer) CreateVestingAccount(goCtx context.Context, msg *types.MsgCre func (m msgServer) Clawback(goCtx context.Context, msg *types.MsgClawback) (*types.MsgClawbackResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - // NOTE: errors checked during msg validation vestingAccAddr := sdk.MustAccAddressFromBech32(msg.AccountAddress) funderAddr := sdk.MustAccAddressFromBech32(msg.FunderAddress) diff --git a/x/vesting/simulation/operations.go b/x/vesting/simulation/operations.go index 7c8f91bc..f32f189d 100644 --- a/x/vesting/simulation/operations.go +++ b/x/vesting/simulation/operations.go @@ -221,7 +221,7 @@ func simulateMsgDelegate( originalVesting sdk.Coins, ) simtypes.Operation { return func( - r *rand.Rand, _ *baseapp.BaseApp, ctx sdk.Context, _ []simtypes.Account, chainID string, + r *rand.Rand, _ *baseapp.BaseApp, ctx sdk.Context, _ []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { msgType := sdk.MsgTypeURL(&stakingtypes.MsgDelegate{}) denom, err := sk.BondDenom(ctx)