mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-19 01:04:43 +00:00
save
This commit is contained in:
parent
adee6ffe53
commit
a2121ef73e
1 changed files with 13 additions and 13 deletions
|
@ -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