mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-23 04:29:22 +00:00
update balances off user thread
This commit is contained in:
parent
40650103d9
commit
29a488d3af
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
package haveno.core.xmr;
|
||||
|
||||
import haveno.common.ThreadUtils;
|
||||
import haveno.common.UserThread;
|
||||
import haveno.core.offer.OpenOffer;
|
||||
import haveno.core.offer.OpenOfferManager;
|
||||
|
@ -87,6 +88,10 @@ public class Balances {
|
|||
}
|
||||
|
||||
private void updateBalances() {
|
||||
ThreadUtils.submitToPool(() -> doUpdateBalances());
|
||||
}
|
||||
|
||||
private void doUpdateBalances() {
|
||||
|
||||
// get wallet balances
|
||||
BigInteger balance = xmrWalletService.getWallet() == null ? BigInteger.ZERO : xmrWalletService.getWallet().getBalance(0);
|
||||
|
|
Loading…
Reference in a new issue