We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have some keys created with Gaia 2.X.
I run:
$ cp -ar ~/.gaiacli/keys ~/.gaia $ gaiad keys migrate
Migrate fails a couple ways.
For offline keys and ledger keys I get something like:
offline
ledger
Error: unmarshal to types.PubKey failed after 4 bytes (unrecognized prefix bytes 028CF77D):
And for multisig I get a panic like:
multisig
panic: reflect: call of reflect.Value.Type on zero Value goroutine 1 [running]: reflect.Value.Type(0x0, 0x0, 0x0, 0x0, 0x0) reflect/value.go:1908 +0x189 github.com/tendermint/go-amino.(*Codec).MarshalBinaryBare(0xc0000ad180, 0x0, 0x0, 0x0, 0x0, 0xc000067200, 0x0, 0xc00149f3b8) github.com/tendermint/[email protected]/amino.go:201 +0x150 github.com/cosmos/cosmos-sdk/codec/types.AminoPacker.UnpackAny(0xc0000ad180, 0xc000c63980, 0x55854e0, 0xc0001a68e0, 0xc00149f418, 0x400d565) github.com/cosmos/[email protected]/codec/types/compat.go:119 +0x9b github.com/cosmos/cosmos-sdk/crypto/keys/multisig.(*LegacyAminoPubKey).UnpackInterfaces(0xc000fe65a0, 0x5cdb500, 0xc0000ad180, 0x2ec06878, 0xc000fe65a0) github.com/cosmos/[email protected]/crypto/keys/multisig/multisig.go:147 +0xa6 github.com/cosmos/cosmos-sdk/codec/types.UnpackInterfaces(...) github.com/cosmos/[email protected]/codec/types/interface_registry.go:286 github.com/cosmos/cosmos-sdk/codec.(*LegacyAmino).marshalAnys(0xc000126100, 0x5833160, 0xc000fe65a0, 0x180, 0xc0000ae300) github.com/cosmos/[email protected]/codec/amino.go:65 +0x9b github.com/cosmos/cosmos-sdk/codec.(*LegacyAmino).MarshalBinaryBare(0xc000126100, 0x5833160, 0xc000fe65a0, 0x0, 0xc00149f520, 0x4110116, 0x55d8c00, 0x16a) github.com/cosmos/[email protected]/codec/amino.go:81 +0x45 github.com/cosmos/cosmos-sdk/codec.(*LegacyAmino).MustMarshalBinaryBare(...) github.com/cosmos/[email protected]/codec/amino.go:89 github.com/cosmos/cosmos-sdk/crypto/keys/multisig.(*LegacyAminoPubKey).Bytes(0xc000fe65a0, 0x5afa338, 0xc00149f570, 0x410fa9a) github.com/cosmos/[email protected]/crypto/keys/multisig/multisig.go:40 +0x47 github.com/cosmos/cosmos-sdk/crypto/keys/multisig.(*LegacyAminoPubKey).Address(0xc000fe65a0, 0xc0000ae302, 0xc000c0a4b0, 0xea) github.com/cosmos/[email protected]/crypto/keys/multisig/multisig.go:35 +0x2f github.com/cosmos/cosmos-sdk/crypto/keyring.offlineInfo.GetAddress(...) github.com/cosmos/[email protected]/crypto/keyring/info.go:172 github.com/cosmos/cosmos-sdk/crypto/keyring.keystore.existsInDb(0x5d15fe0, 0xc00001dfb0, 0xc0001af840, 0x1, 0x1, 0xc0001af850, 0x1, 0x1, 0x5d1c3f0, 0xc0000bd770, ...) github.com/cosmos/[email protected]/crypto/keyring/keyring.go:757 +0x49 github.com/cosmos/cosmos-sdk/crypto/keyring.keystore.writeInfo(0x5d15fe0, 0xc00001dfb0, 0xc0001af840, 0x1, 0x1, 0xc0001af850, 0x1, 0x1, 0x5d1c3f0, 0xc0000bd770, ...) github.com/cosmos/[email protected]/crypto/keyring/keyring.go:728 +0x1bb github.com/cosmos/cosmos-sdk/crypto/keyring.keystore.writeOfflineKey(0x5d15fe0, 0xc00001dfb0, 0xc0001af840, 0x1, 0x1, 0xc0001af850, 0x1, 0x1, 0xc0001a2210, 0xc, ...) github.com/cosmos/[email protected]/crypto/keyring/keyring.go:775 +0xf0 github.com/cosmos/cosmos-sdk/crypto/keyring.keystore.ImportPubKey(0x5d15fe0, 0xc00001dfb0, 0xc0001af840, 0x1, 0x1, 0xc0001af850, 0x1, 0x1, 0xc0001a2210, 0xc, ...) github.com/cosmos/[email protected]/crypto/keyring/keyring.go:313 +0x206 github.com/cosmos/cosmos-sdk/client/keys.runMigrateCmd(0xc000f0fb80, 0xc000e59ee0, 0x0, 0x2, 0x0, 0x0) github.com/cosmos/[email protected]/client/keys/migrate.go:115 +0x6e8 github.com/spf13/cobra.(*Command).execute(0xc000f0fb80, 0xc000e59ec0, 0x2, 0x2, 0xc000f0fb80, 0xc000e59ec0) github.com/spf13/[email protected]/command.go:852 +0x472 github.com/spf13/cobra.(*Command).ExecuteC(0xc000c69680, 0x0, 0x0, 0xc000db7fe0) github.com/spf13/[email protected]/command.go:960 +0x375 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/[email protected]/command.go:897 github.com/spf13/cobra.(*Command).ExecuteContext(...) github.com/spf13/[email protected]/command.go:890 github.com/cosmos/cosmos-sdk/server/cmd.Execute(0xc000c69680, 0xc000db7fe0, 0x19, 0x5d2e458, 0xc000de0b70) github.com/cosmos/[email protected]/server/cmd/execute.go:36 +0x265
The text was updated successfully, but these errors were encountered:
alessio
jgimeno
sahith-narahari
Successfully merging a pull request may close this issue.
I have some keys created with Gaia 2.X.
I run:
Migrate fails a couple ways.
For
offline
keys andledger
keys I get something like:And for
multisig
I get a panic like:The text was updated successfully, but these errors were encountered: