mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
ensure utxos are fetched after refreshing transactions to ensure bip47 notification utxos are not included in balances
This commit is contained in:
parent
76794f14b8
commit
7e2276394c
1 changed files with 2 additions and 3 deletions
|
@ -1024,7 +1024,6 @@ class BitcoinWallet extends CoinServiceAPI
|
||||||
await checkAllCurrentReceivingPaynymAddressesForTransactions();
|
await checkAllCurrentReceivingPaynymAddressesForTransactions();
|
||||||
|
|
||||||
final fetchFuture = _refreshTransactions();
|
final fetchFuture = _refreshTransactions();
|
||||||
final utxosRefreshFuture = _updateUTXOs();
|
|
||||||
GlobalEventBus.instance
|
GlobalEventBus.instance
|
||||||
.fire(RefreshPercentChangedEvent(0.50, walletId));
|
.fire(RefreshPercentChangedEvent(0.50, walletId));
|
||||||
|
|
||||||
|
@ -1036,12 +1035,12 @@ class BitcoinWallet extends CoinServiceAPI
|
||||||
.fire(RefreshPercentChangedEvent(0.70, walletId));
|
.fire(RefreshPercentChangedEvent(0.70, walletId));
|
||||||
_feeObject = Future(() => feeObj);
|
_feeObject = Future(() => feeObj);
|
||||||
|
|
||||||
await utxosRefreshFuture;
|
await fetchFuture;
|
||||||
GlobalEventBus.instance
|
GlobalEventBus.instance
|
||||||
.fire(RefreshPercentChangedEvent(0.80, walletId));
|
.fire(RefreshPercentChangedEvent(0.80, walletId));
|
||||||
|
|
||||||
await fetchFuture;
|
|
||||||
await checkForNotificationTransactionsTo(codesToCheck);
|
await checkForNotificationTransactionsTo(codesToCheck);
|
||||||
|
await _updateUTXOs();
|
||||||
await getAllTxsToWatch();
|
await getAllTxsToWatch();
|
||||||
GlobalEventBus.instance
|
GlobalEventBus.instance
|
||||||
.fire(RefreshPercentChangedEvent(0.90, walletId));
|
.fire(RefreshPercentChangedEvent(0.90, walletId));
|
||||||
|
|
Loading…
Reference in a new issue