iost-official / go-iost

Official Go implementation of the IOST blockchain
https://developers.iost.io/
GNU Lesser General Public License v3.0
565 stars 112 forks source link

iwallet import account conflict between Mainnet & Testnet #934

Closed LingTian closed 5 years ago

LingTian commented 5 years ago

This issue cause by mainnet & testnet share same account name. For my case I use whitematrix for both mainnet & testnet. After I import whitematrix for testnet, I cannot import it for mainnet.

LingTian commented 5 years ago

My hacky way to solve this is goto /Users/username/.iwallet and get rid of the conflict account. Remeber to save your private key first. I think iwallet can add some flags to solve this issue

lispc commented 5 years ago

iwallet has a flag 'account_dir'. Private keys will be saved inside this dir. So you can use a different account_dir for a different network