Merge pull request #541

bd95908 update history when new block is found (Jaquee)
This commit is contained in:
Riccardo Spagni 2017-03-07 11:03:59 +00:00
commit 632d347d07
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -334,8 +334,8 @@ ApplicationWindow {
console.log(">>> wallet updated")
middlePanel.unlockedBalanceText = leftPanel.unlockedBalanceText = walletManager.displayAmount(currentWallet.unlockedBalance);
middlePanel.balanceText = leftPanel.balanceText = walletManager.displayAmount(currentWallet.balance);
// Update history if new block found since last update and balance is locked.
if(foundNewBlock && currentWallet.history.locked) {
// Update history if new block found since last update
if(foundNewBlock) {
foundNewBlock = false;
console.log("New block found - updating history")
currentWallet.history.refresh()