cosmos-sdk/x/distribution
Alessio Treglia e8cedf243f
fix all bits broken by viper API changes (#5982)
github.com/spf13/viper's recent releases introduced a semantic
change in some public API such as viper.IsSet(), which have
broken some of our flags checks. Instead of checking whether
users have changed a flag's default value we should rely on such
defaults and adjust runtime behaviour accordingly. In order to do
so, it's important that we pick sane defaults for all our flags.

The --pruning flag and configuration option now allow for a
fake custom strategy. When users elect custom, then the
pruning-{keep,snapshot}-every options are interpreted and
parsed; else they're ignored.
Zero is pruning-{keep,snapshot}-every default value. When
users choose to set a custom pruning strategy they are
signalling that they want more fine-grainted control, therefore
it's legitimate to expect them to know what they are doing and
enter valid values for both options.

Ref #5964
2020-04-14 17:24:27 +02:00
..
client fix all bits broken by viper API changes (#5982) 2020-04-14 17:24:27 +02:00
keeper lint: various linting fixs (#5825) 2020-03-20 19:24:18 +00:00
legacy Merge PR #5561: v0.38 Migration Fixes 2020-01-23 13:15:22 -05:00
simulation Remove dependency of types/module package on x/simulation (#5835) 2020-03-23 12:55:44 +01:00
spec Update 07_params.md 2020-03-17 11:30:24 -04:00
types Fix distribution proto package 2020-02-26 20:16:48 -05:00
abci.go update simulation operations to use BaseApp (#4946) 2019-10-23 11:14:45 +02:00
alias.go x/distribution: simapp for testing (#5725) 2020-03-05 14:00:45 +00:00
doc.go Merge PR #5417: Update distribution module doc 2019-12-17 13:59:16 -05:00
genesis.go Merge PR #5610: proto: migrate x/distr to use hybrid codec 2020-02-11 09:58:37 -05:00
handler.go JSON Proto changes 2020-03-26 12:46:10 -04:00
module_test.go run go mod tidy && make format (#5847) 2020-03-20 17:14:14 +00:00
module.go Remove dependency of types/module package on x/simulation (#5835) 2020-03-23 12:55:44 +01:00
proposal_handler_test.go run go mod tidy && make format (#5847) 2020-03-20 17:14:14 +00:00