Save wallet after every refresh

This commit is contained in:
Jacob Brydolf 2016-10-17 19:13:56 +02:00
parent 05046a5f21
commit 10d3d3f577
No known key found for this signature in database
GPG key ID: DE46246550D2F3C5

View file

@ -245,12 +245,9 @@ ApplicationWindow {
var dTargetBlock = currentWallet.daemonBlockChainTargetHeight();
leftPanel.daemonProgress.updateProgress(dCurrentBlock,dTargetBlock);
// Store wallet after first refresh. To prevent broken wallet after a crash
if(isNewWallet && currentWallet.blockChainHeight() > 0){
// Store wallet after every refresh.
currentWallet.store(persistentSettings.wallet_path)
isNewWallet = false
console.log("wallet stored after first successfull refresh")
}
// initialize transaction history once wallet is initializef first time;
if (!walletInitialized) {