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,9 +314,10 @@ public class BsqWalletService extends WalletService implements DaoStateListener
private void updateBsqWalletTransactions() { private void updateBsqWalletTransactions() {
walletTransactions.setAll(getTransactions(false)); walletTransactions.setAll(getTransactions(false));
// walletTransactions.setAll(getBsqWalletTransactions()); if (daoStateService.isParseBlockChainComplete()) {
updateBsqBalance(); updateBsqBalance();
} }
}
private Set<Transaction> getBsqWalletTransactions() { private Set<Transaction> getBsqWalletTransactions() {
return getTransactions(false).stream() return getTransactions(false).stream()