Key not found in keyring #33

Closed
opened 2024-06-28 15:21:03 +00:00 by dasanchez · 2 comments

Hi! The tx bond create transaction is returning a "key not found" error.
A tx bank send transaction is accepted:

laconicd tx bank send laconic1r5v5srda7xfth3hn2s26txvrcrntldju7hlmqd laconic1r5v5srda7xfth3hn2s26txvrcrntldju7hlmqd 1000photon --from val_001 --gas auto --fees 1000photon --home ~/temp/.val_001 -y --keyring-backend test --node http://localhost:27001 --chain-id laconic_9000-1
gas estimate: 68070
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: ""
timestamp: ""
tx: null
txhash: 8E7D29E86291B59491970EFB76EFAA1DE97D03361257EC15F07713B529B831E7

A tx bond create transaction is not accepted:

laconicd tx bond create 1000000photon --from val_001 --gas auto --fees 1000photon --home ~/temp/.val_001 -y --keyring-backend test --node http://localhost:27001 --chain-id laconic_9000-1
Error: val_001.info: key not found
val_001.info: key not found [cosmos/cosmos-sdk@v0.50.3/crypto/keyring/keyring.go:538]

The key is present in the keyring:

laconicd keys list --home ~/temp/.val_001 --keyring-backend test
- address: laconic1r5v5srda7xfth3hn2s26txvrcrntldju7hlmqd
  name: val_001
  pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"ArpmqEz3g5rxcqE+f8n15wCMuLyhWF+PO6+zA57aPB/d"}'
  type: local

Version:

laconicd version
main-e63f51cacdb132eec3c934b078bf7465e0f54eee
Hi! The `tx bond create` transaction is returning a "key not found" error. A `tx bank send` transaction is accepted: ``` laconicd tx bank send laconic1r5v5srda7xfth3hn2s26txvrcrntldju7hlmqd laconic1r5v5srda7xfth3hn2s26txvrcrntldju7hlmqd 1000photon --from val_001 --gas auto --fees 1000photon --home ~/temp/.val_001 -y --keyring-backend test --node http://localhost:27001 --chain-id laconic_9000-1 gas estimate: 68070 code: 0 codespace: "" data: "" events: [] gas_used: "0" gas_wanted: "0" height: "0" info: "" logs: [] raw_log: "" timestamp: "" tx: null txhash: 8E7D29E86291B59491970EFB76EFAA1DE97D03361257EC15F07713B529B831E7 ``` A `tx bond create` transaction is not accepted: ``` laconicd tx bond create 1000000photon --from val_001 --gas auto --fees 1000photon --home ~/temp/.val_001 -y --keyring-backend test --node http://localhost:27001 --chain-id laconic_9000-1 Error: val_001.info: key not found val_001.info: key not found [cosmos/cosmos-sdk@v0.50.3/crypto/keyring/keyring.go:538] ``` The key is present in the keyring: ``` laconicd keys list --home ~/temp/.val_001 --keyring-backend test - address: laconic1r5v5srda7xfth3hn2s26txvrcrntldju7hlmqd name: val_001 pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"ArpmqEz3g5rxcqE+f8n15wCMuLyhWF+PO6+zA57aPB/d"}' type: local ``` Version: ``` laconicd version main-e63f51cacdb132eec3c934b078bf7465e0f54eee ```
Member

Hi @dasanchez
I was able to reproduce the issue locally.
Will investigate why tx bank send is working but tx bond create doesn't with the same command flags.

Hi @dasanchez I was able to reproduce the issue locally. Will investigate why `tx bank send` is working but `tx bond create` doesn't with the same command flags.
Member

Hi @dasanchez

  • It appears there is an issue with home dir resolution in cosmos-sdk causing the above behaviour
  • In PR #35, we have implemented a workaround for the same
  • However, we still need to pass the --node flag for some commands (tx bond create being one of them) to work when using a non-default home dir
Hi @dasanchez - It appears there is an issue with home dir resolution in cosmos-sdk causing the above behaviour - In PR #35, we have implemented a workaround for the same - However, we still need to pass the `--node` flag for some commands (`tx bond create` being one of them) to work when using a non-default home dir
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconicd#33
No description provided.