Browse Source

dont refresh invalid wallets

bwt
Craig Raw 4 years ago
parent
commit
32bc9f6a99
  1. 8
      src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java

8
src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java

@ -225,9 +225,11 @@ public class WalletForm {
@Subscribe
public void walletNodeHistoryChanged(WalletNodeHistoryChangedEvent event) {
WalletNode walletNode = event.getWalletNode(wallet);
if(walletNode != null) {
refreshHistory(AppController.getCurrentBlockHeight(), walletNode);
if(wallet.isValid()) {
WalletNode walletNode = event.getWalletNode(wallet);
if(walletNode != null) {
refreshHistory(AppController.getCurrentBlockHeight(), walletNode);
}
}
}

Loading…
Cancel
Save