mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 09:17:35 +00:00
CW-719 Transaction dates shows incorrectly (#1685)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
Some checks are pending
Cache Dependencies / test (push) Waiting to run
* ignore 0 height * fix date format
This commit is contained in:
parent
417de3669c
commit
c6a4c69084
2 changed files with 8 additions and 3 deletions
|
@ -76,8 +76,13 @@ abstract class ElectrumTransactionHistoryBase
|
|||
final val = entry.value;
|
||||
|
||||
if (val is Map<String, dynamic>) {
|
||||
final tx = ElectrumTransactionInfo.fromJson(val, walletInfo.type);
|
||||
_update(tx);
|
||||
// removing transactions with invalid date
|
||||
if (val['date'] == 1168650000) {
|
||||
transactions.remove(entry.key);
|
||||
} else {
|
||||
final tx = ElectrumTransactionInfo.fromJson(val, walletInfo.type);
|
||||
_update(tx);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1613,7 +1613,7 @@ abstract class ElectrumWalletBase
|
|||
}
|
||||
|
||||
if (height != null) {
|
||||
if (time == null) {
|
||||
if (time == null && height > 0) {
|
||||
time = (getDateByBitcoinHeight(height).millisecondsSinceEpoch / 1000).round();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue