cosmos-sdk/x/staking
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
..
client CreateValidator self delegation must be at least one consensus power (#8909) 2021-03-22 12:41:27 +00:00
exported Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
keeper Move all migration scripts to v043 (#8814) 2021-03-08 22:36:06 +00:00
legacy chore: refactor code quality issues (#8932) 2021-03-22 09:30:27 +00:00
simulation CreateValidator self delegation must be at least one consensus power (#8909) 2021-03-22 12:41:27 +00:00
spec Staking spec updates (#8843) 2021-03-19 12:06:53 +00:00
teststaking Removed GetValidator caching to fix concurrency error (#8546) 2021-02-12 11:52:03 +00:00
types CreateValidator self delegation must be at least one consensus power (#8909) 2021-03-22 12:41:27 +00:00
abci.go Merge PR #6761: telemetry: use UTC() in wrappers 2020-07-17 15:33:50 -04:00
app_test.go simapp: rename MakeEncodingConfig to MakeTestEncodingConfig (#7681) 2020-10-27 11:33:48 +00:00
bench_test.go x/staking: add ValidateGenesis benchmark (#8746) 2021-03-02 01:01:05 -08:00
common_test.go set PowerReduction=10^18 for staking tests 2020-11-12 01:48:42 +10:00
genesis_test.go [Bank] Remove the unsafe balance changing API (#8473) 2021-02-17 18:20:33 +00:00
genesis.go [Bank] Remove the unsafe balance changing API (#8473) 2021-02-17 18:20:33 +00:00
handler_test.go [Bank] Remove the unsafe balance changing API (#8473) 2021-02-17 18:20:33 +00:00
handler.go Refactor x/staking according to ADR 031 (#7556) 2020-10-16 14:53:49 +00:00
module_test.go tendermint: update to rc3 (#6892) 2020-08-14 13:58:53 -04:00
module.go x{stake,slash,gov,distrib} In-place Store Migrations (#8504) 2021-02-25 10:43:31 +00:00