mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
CW-719 Transaction dates shows incorrectly (#1685)
* ignore 0 height * fix date format
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user