cosmos-sdk/client/keys
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
..
testdata/keys/keys.db crypto/keyring: deprecate old keybase (#5889) 2020-03-30 20:30:50 +02:00
add_ledger_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
add_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
add.go fix all bits broken by viper API changes (#5982) 2020-04-14 17:24:27 +02:00
codec_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
codec.go Interchangable PrivKey implementations in keybase (#5278) 2019-12-12 21:52:24 +00:00
delete_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
delete.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
export_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
export.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
import_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
import.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
list_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
list.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
migrate_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
migrate.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
mnemonic_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
mnemonic.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
parse_test.go crypto/keyring: change addrKey to store chain-agnostic addresses (#5858) 2020-03-30 16:54:01 +02:00
parse.go crypto/keyring: change addrKey to store chain-agnostic addresses (#5858) 2020-03-30 16:54:01 +02:00
root_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
root.go crypto/keyring: deprecate old keybase (#5889) 2020-03-30 20:30:50 +02:00
show_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
show.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
types_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
types.go crypto/keys: move keybase and keyring to crypto/keyring/ dir (#5866) 2020-03-25 15:20:36 +00:00
utils.go crypto/keyring: deprecate old keybase (#5889) 2020-03-30 20:30:50 +02:00