cardano-foundation / cardano-wallet

HTTP server & command-line for managing UTxOs and HD wallets in Cardano.
Apache License 2.0
765 stars 213 forks source link

testnet Support with cardano-wallet #3586

Closed mhassan102 closed 1 year ago

mhassan102 commented 1 year ago

The problem that you wish to solve

Can we have documentation for executing cardano-wallet on testnet network ?

Description

testnet config seems to missing in cardano-wallet latest version.

I tried following execute following docker-compose:

export NETWORK=testnet
docker-compose up -d

and face this error:

cardano-wallet_1  | [cardano-wallet.main:Error:4] [2022-10-30 18:42:25.36 UTC] Failed to parse Byron genesis configuration. You may want to check the filepath given via --genesis and make sure it points to a  valid JSON Byron genesis file. The genesis file must be Byron, not Shelley as it used to feed the wallet with the initial blockchain parameters. Here's (perhaps) some helpful hint: GenesisDataIOError /config/testnet/genesis-byron.json: openBinaryFile: does not exist (No such file or directory)

Inside container I didn't find testnet config

bash-5.1# ls config/
mainnet  preprod  preview  shelley_qa  staging

volumes for testnet also missing in docker-compose

Implementation suggestions

No response

mgajda commented 1 year ago

It is much safer to test transaction submission on testnet, rather than playing with real Adas.

migamake

piotr-iohk commented 1 year ago

Yes, you can use cardano-wallet on preprod and preview testnets.

NETWORK=preprod docker-compose up
NETWORK=preview docker-compose up

(:warning: preview testnet has been forked to cardano-node 1.35.4 with which current cardano-wallet is not yet compatible, but preprod should work fine)

See also:

piotr-iohk commented 1 year ago

Note: Configs for old testnet have been intentionally removed as it is a legacy network which I believe doesn't work anyway on any node version >= 1.35.3.

mgajda commented 1 year ago

Thanks a lot!

Since we want maximum stability of our tests, and preprod is long running network, we will use preprod for our wallet tests.

mhassan102 commented 1 year ago

Thanks for the support