mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
more experiments
This commit is contained in:
parent
65509c00b4
commit
adee6ffe53
2 changed files with 16 additions and 17 deletions
|
@ -416,11 +416,10 @@ abstract class ElectrumWalletBase
|
|||
await _setInitialHeight();
|
||||
}
|
||||
|
||||
await _subscribeForUpdates();
|
||||
|
||||
await updateTransactions();
|
||||
|
||||
if (this is! LitecoinWallet) {
|
||||
await _subscribeForUpdates();
|
||||
await updateTransactions();
|
||||
|
||||
await updateAllUnspents();
|
||||
await updateBalance();
|
||||
}
|
||||
|
|
|
@ -179,19 +179,19 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
|||
syncStatus = SyncedSyncStatus();
|
||||
}
|
||||
|
||||
if (resp.mwebUtxosHeight > mwebUtxosHeight) {
|
||||
mwebUtxosHeight = resp.mwebUtxosHeight;
|
||||
await checkMwebUtxosSpent();
|
||||
// update the confirmations for each transaction:
|
||||
for (final transaction in transactionHistory.transactions.values) {
|
||||
if (transaction.isPending) continue;
|
||||
final confirmations = mwebUtxosHeight - transaction.height + 1;
|
||||
if (transaction.confirmations == confirmations) continue;
|
||||
transaction.confirmations = confirmations;
|
||||
transactionHistory.addOne(transaction);
|
||||
}
|
||||
await transactionHistory.save();
|
||||
}
|
||||
// if (resp.mwebUtxosHeight > mwebUtxosHeight) {
|
||||
// mwebUtxosHeight = resp.mwebUtxosHeight;
|
||||
// await checkMwebUtxosSpent();
|
||||
// // update the confirmations for each transaction:
|
||||
// for (final transaction in transactionHistory.transactions.values) {
|
||||
// if (transaction.isPending) continue;
|
||||
// final confirmations = mwebUtxosHeight - transaction.height + 1;
|
||||
// if (transaction.confirmations == confirmations) continue;
|
||||
// transaction.confirmations = confirmations;
|
||||
// transactionHistory.addOne(transaction);
|
||||
// }
|
||||
// await transactionHistory.save();
|
||||
// }
|
||||
}
|
||||
});
|
||||
processMwebUtxos();
|
||||
|
|
Loading…
Reference in a new issue