thunder icon indicating copy to clipboard operation
thunder copied to clipboard

ThunderWallet creates new testnet address every time it is run (forgets old one)

Open lacksfish opened this issue 9 years ago • 2 comments

Would be great to have a permanent storage (wallet) for testnet private keys. Otherwise I'm just burning testnet coins. Am I missing something?

lacksfish avatar May 18 '16 08:05 lacksfish

Also, "restore from words" prompts me that there is 1 tBTC sitting in the current Wallet and that I should empty it first. Can not proceed testing this way.

EDIT: Emptying results in a crash

java.lang.IllegalStateException: No transaction broadcaster is configured

lacksfish avatar May 18 '16 08:05 lacksfish

Yes, so by default it is not connecting to any blockchain, it is using the MockWallet object. This allows for easier testing and debugging, so you won't see any coins sent to the wallet (because it's not listening the blockchain).

If you want to try it out with real tBTC, you have to toggle Constants.USE_MOCK_BLOCKCHAIN. Then it will create a wallet file and actually read from it upon startup again. Keep in mind that there is no persistence data storage engine yet (working on that just now).

matsjj avatar May 20 '16 06:05 matsjj