Thanks to visit codestin.com
Credit goes to github.com

Skip to content

the get_stored_tx method from OwnerAPI gives "error code -32099 because: IO" #665

@marekyggdrasil

Description

@marekyggdrasil

Describe the bug

I am attempting to use get_stored_tx to get transaction info with id=0 from the wallets database. I am getting error code -32099 because: IO.

To Reproduce
Steps to reproduce the behavior:

  1. Set your log level to DEBUG in your grin-wallet.toml
  2. Make sure your wallet has some transactions in the database
  3. Run your wallet in owner API grin-wallet owner_api
  4. Run init_secure_api to establish a secure connection with the wallet
  5. Run get_stored_tx with id=0

If you successfully reproduce the returned error will be

Callng get_stored_tx with params {'token': '<token_here>', 'id': 0, 'slate_id': None} failed with error code -32099 because: IO

and in the logs there will be just

20221108 12:46:22.810 DEBUG grin_store::lmdb - DB Mapsize for /Users/marek/Development/open-source/grinventions/wallets/slateboy-wallet/wallet_data/db/lmdb is 134217728
20221108 12:46:22.811 DEBUG grin_wallet_impls::lifecycle::seed - Using wallet seed file at: /Users/marek/Development/open-source/grinventions/wallets/slateboy-wallet/wallet_data/wallet.seed

Expected behavior
What I expect is get_stored_tx should provide the transaction info for transaction with id=0.

Screenshots
N/A

Desktop (please complete the following information):

OS

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.15.7
BuildVersion:	19H1715

wallet

$ grin-wallet -V
grin-wallet 5.1.0

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions