From eb2975aefb4dbf1bbf0f98e39209efe8beccb5bd Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Wed, 20 Mar 2019 13:06:22 -0500 Subject: [PATCH] Dont' call updateBsqBalance while batch processing We got a concurrent modification error when BTC blockchain sync was running while DAO state was updated. --- .../src/main/java/bisq/core/btc/wallet/BsqWalletService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/bisq/core/btc/wallet/BsqWalletService.java b/core/src/main/java/bisq/core/btc/wallet/BsqWalletService.java index c22419faab..fa7d7ce444 100644 --- a/core/src/main/java/bisq/core/btc/wallet/BsqWalletService.java +++ b/core/src/main/java/bisq/core/btc/wallet/BsqWalletService.java @@ -314,8 +314,9 @@ public class BsqWalletService extends WalletService implements DaoStateListener private void updateBsqWalletTransactions() { walletTransactions.setAll(getTransactions(false)); - // walletTransactions.setAll(getBsqWalletTransactions()); - updateBsqBalance(); + if (daoStateService.isParseBlockChainComplete()) { + updateBsqBalance(); + } } private Set getBsqWalletTransactions() {