cosmos-sdk/x/staking/simulation
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
..
common_test.go set PowerReduction=10^18 for staking tests 2020-11-12 01:48:42 +10:00
decoder_test.go codecs: rename MakeCodecs rename and docs update (#8245) 2021-01-07 21:50:52 +00:00
decoder.go types: add kv type (#6897) 2020-07-30 14:53:02 +00:00
genesis_test.go Update default historical header number for stargate (#8178) 2020-12-17 19:50:03 +00:00
genesis.go Use any as validator pubkey (#7597) 2020-10-23 12:07:52 +00:00
operations_test.go [Bank] Remove the unsafe balance changing API (#8473) 2021-02-17 18:20:33 +00:00
operations.go CreateValidator self delegation must be at least one consensus power (#8909) 2021-03-22 12:41:27 +00:00
params_test.go Update default historical header number for stargate (#8178) 2020-12-17 19:50:03 +00:00
params.go Update DefaultHistoricalEntries to 100 (#6059) 2020-04-23 15:06:30 +00:00