Cosmos-sdk: Keys list broken

Created on 27 Aug 2018  Â·  4Comments  Â·  Source: cosmos/cosmos-sdk

Summary of Bug

Keys list errors if ledger account is presetn

Steps to Reproduce

gaiacli keys add --ledger ledger
gaiacli keys list


For Admin Use

  • [x] Not duplicate issue
  • [x] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned
CLI bug keys ledger

All 4 comments

@faboweb I was not able to reproduce this on 0.24.2-df70a34c. I did the following:

  1. Added a non-ledger key
  2. Listed keys and verified
  3. Connected Ledger & opened the app
  4. Created a Ledger key
  5. Repeated step (2)

Output:

gaiacli keys list --home ./build/node0                                                                                                                                         8.11.3 [±bez/2064-ledger-signing-bugfix ✓]
NAME:   TYPE:   ADDRESS:                                                PUBKEY:
ledgertest      ledger  cosmosaccaddr164z7wwzv84h4hwn6rvjjkns6j4ht43jvzldv3e    cosmosaccpub1addwnpepq2v8knvrl7hpudcrs67478anamx6lqahcfl4yjaz84nq8hyep433ymun83u
node0   local   cosmosaccaddr1pa6nnc0qt6nzmyah4tjc7wr728es04hm7ckuyy    cosmosaccpub1addwnpepqdvg36rls7dhjp6f32syhuhkjnhl2d5352667l3z2wurfanuykz0cqzq624

I was also able to send steak to and from both accounts.

could be due to an old keystore being present - sometimes unless you clear your keystore, there may be errors if the marshalling has changed.

Closing this issue unless some new reproducible steps show a bug

If this happens again, let's error if the version of the keystore is a mismatch to the current code.

++ @faboweb

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cwgoes picture cwgoes  Â·  3Comments

rigelrozanski picture rigelrozanski  Â·  3Comments

hendrikhofstadt picture hendrikhofstadt  Â·  3Comments

ValarDragon picture ValarDragon  Â·  3Comments

kevlubkcm picture kevlubkcm  Â·  3Comments