Hi @Autotunafish
I’m not quite there.
I’ve confirmed my zcashd is on testnet. Everything synced up.
Starting lightwalletd
./lightwalletd --no-tls-very-insecure --zcash-conf-path ~/.zcash/zcash.conf --log-file /dev/stdout --rpcuser XXX --rpcpassword YYY --data-dir ~/Storage/lightwalletd
Lightwalletd connects to zcashd and I can see logs at
~/.zcash/testnet3/debug.log
Launching lightwallet-cli
./zecwallet-cli --server 127.0.0.1:9067 --data-dir ./zcash
DOES create zecwallet-light-wallet.dat and zecwallet-light-wallet.debug.log but NOT under ~./zcash/testnet3 but rather ~./zcash
The addresses command in interactive mode returns
status: Unknown, message: “-5: Invalid address”, details: , metadata: MetadataMap { headers: {“content-type”: “application/grpc”} }
and the addresses are NOT testnet addresses but rather mainnet addresses
issuing
./zecwallet-cli --server 127.0.0.1:9067
WITHOUT a data directory switch DOES create the zecwallet-light-wallet.dat and zecwallet-light-wallet.debug.log under
~./zcash/testnet
however the addresses command still returns:
status: Unknown, message: “-5: Invalid address”, details: , metadata: MetadataMap { headers: {“content-type”: “application/grpc”} }
and the addresses are again NOT testnet addresses and again mainnet addresses.
Same behavior with
./zecwallet-cli --server 127.0.0.1:9067 --data-dir ./zcash/testnet3
and just for the heck of it
./zecwallet-cli --server 127.0.0.1:9067 --data-dir ./my-new-wallet-dir
Again, mainnet addresses instead of testnet, just with wallets in a different location; the my-new-wallet-directory.
./zecwallet-cli --help;
Doesn’t seem to have seem to have an option to force testnet addresses creation in the wallet. Didn’t jump out at me anyway.
BTW, thank you for the pointer to the zingo-cli @AloeareV and @zancas. If I can’t get zecwallet-cli going on testnet I will give zingo-cli a look.
I hope I’m missing something obvious in launching zecwallet-cli.
In the GUI example that @Autotunafish provided the switch to the testnet server is happening in the gui not at launch. I’m wondering if there is step happening behind the scenes in the GUI version of the zecwallet related to testnet wallet creation but I would guess that the ~./zcash/zcash.conf file is just being updated to testnet = 1 and perhaps the addnode entry being updated, too, to point at testnet.z.cash. Just a guess there on my part about the GUI version having an extra step in wallet creation. Pure guess.
Something else I might try or did I stumble upon an issue that needs reporting?
Dennis