cosmos-sdk/x/staking/client/cli
colin axnér 8a37ba04a4
CreateValidator self delegation must be at least one consensus power (#8909)
* update MsgCreateValidator ValidateBasic to enforce self delegation minimum

MsgCreateValidator ValidateBasic requires a self delegation of at least one consensus power, this prevents a common, but hard to debug error

* add changelog

* Update CHANGELOG.md

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* fix simulation tests

Construct successfuly MsgCreateValidator to use a self delegation which is greater than the PowerReduction

* fix cli tests

* fix cli tests

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-03-22 12:41:27 +00:00
..
cli_test.go CreateValidator self delegation must be at least one consensus power (#8909) 2021-03-22 12:41:27 +00:00
flags.go Remove viper in Staking module. (#6631) 2020-07-08 22:00:34 +02:00
query.go Limit context background (#8093) 2021-02-03 09:47:25 +00:00
tx_test.go remove comment 2020-11-11 01:38:54 +10:00
tx.go Use service Msgs in CLI tx commands (#8512) 2021-02-18 18:00:19 +00:00
utils.go various linter fixes (#6106) 2020-05-02 21:26:59 +02:00