cosmos-sdk/server
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
..
config fix all bits broken by viper API changes (#5982) 2020-04-14 17:24:27 +02:00
mock Merge PR #5421: Refactor Error Handling 2019-12-27 12:57:54 -05:00
constructors_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
constructors.go Merge PR #4836: Upgrade Tendermint and IAVL 2019-08-02 09:20:39 -04:00
export.go Merge PR #5696: Fix x/auth proto json tags 2020-02-25 15:22:28 -05:00
init_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
init.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
pruning_test.go fix all bits broken by viper API changes (#5982) 2020-04-14 17:24:27 +02:00
pruning.go fix all bits broken by viper API changes (#5982) 2020-04-14 17:24:27 +02:00
start_test.go fix all bits broken by viper API changes (#5982) 2020-04-14 17:24:27 +02:00
start.go fix all bits broken by viper API changes (#5982) 2020-04-14 17:24:27 +02:00
test_helpers.go Merge PR #4608: More linters - Gosec, staticcheck 2019-06-26 13:30:36 -07:00
tm_cmds.go Merge PR #5495: Replace Redundant Bech32 PubKey Functions 2020-01-09 09:04:28 -05:00
util_test.go Run make format 2018-12-10 14:27:25 +00:00
util.go Squash various linter warnings (#5652) 2020-02-16 20:06:45 +01:00