cosmos-sdk/client/context
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
..
broadcast.go Merge PR #5421: Refactor Error Handling 2019-12-27 12:57:54 -05:00
broadcast_test.go Merge PR #5421: Refactor Error Handling 2019-12-27 12:57:54 -05:00
context.go fix all bits broken by viper API changes (#5982) 2020-04-14 17:24:27 +02:00
context_test.go fix all bits broken by viper API changes (#5982) 2020-04-14 17:24:27 +02:00
errors.go Merge PR #4881: Linting Galore 2019-08-19 12:06:27 -04:00
query.go x/ibc: IBC alpha (#5277) 2020-04-08 20:57:52 -04:00
verifier.go Merge PR #5527: Bump Tendermint Version to v0.33.0 2020-01-16 13:46:51 -08:00
verifier_test.go Merge PR #5527: Bump Tendermint Version to v0.33.0 2020-01-16 13:46:51 -08:00