mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
FIX: transactions update on app start
This commit is contained in:
parent
b9ec7ac420
commit
2c76589a5c
1 changed files with 2 additions and 1 deletions
|
@ -32,8 +32,9 @@ async function startAndDecrypt(retry) {
|
|||
console.log('time to refresh wallet #0');
|
||||
let oldBalance = wallets[0].getBalance();
|
||||
await wallets[0].fetchBalance();
|
||||
if (oldBalance !== wallets[0].getBalance() || wallets[0].getUnconfirmedBalance() !== 0) {
|
||||
if (oldBalance !== wallets[0].getBalance() || wallets[0].getUnconfirmedBalance() !== 0 || wallets[0].timeToRefreshTransaction()) {
|
||||
// balance changed, thus txs too
|
||||
// or wallet thinks its time to reload TX list
|
||||
await wallets[0].fetchTransactions();
|
||||
hadToRefresh = true;
|
||||
EV(EV.enum.WALLETS_COUNT_CHANGED);
|
||||
|
|
Loading…
Add table
Reference in a new issue