Dont' call updateBsqBalance while batch processing

We got a concurrent modification error when BTC blockchain sync was
running while DAO state was updated.
This commit is contained in:
Manfred Karrer 2019-03-20 13:06:22 -05:00
parent fb3ca06600
commit eb2975aefb
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -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<Transaction> getBsqWalletTransactions() {