Skip to content

Commit bfb7235

Browse files
committed
backend/handlers: fix header sync tx timestamp
The use of creation timestamp when the tx timestamp was not available caused the app to show the current date for all the btc/ltc transactions during the header syncing. This removes the use of the tx creation timestamp, as it doesn't seem to be really useful anyway. Now during header sync the tx date is not showed at all.
1 parent 005565d commit bfb7235

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Gracefully shut down Electrum connections upon closing the app
88
- Show the selected coin's address on the confirmation screen
99
- Fetch balances of multiple ETH accounts at the same time, instead of one by one.
10+
- Fix wrong btc/ltc transaction timestamp during header sync
1011

1112
## v4.48.3
1213
- Linux: fix compatiblity with some versions of Mesa also when using the AppImage

backend/coins/btc/handlers/handlers.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,6 @@ func (handlers *Handlers) getTxInfoJSON(txInfo *accounts.TransactionData, detail
140140
amount := txInfo.Amount.FormatWithConversions(handlers.account.Coin(), false, accountConfig.RateUpdater)
141141
var formattedTime *string
142142
timestamp := txInfo.Timestamp
143-
if timestamp == nil {
144-
timestamp = txInfo.CreatedTimestamp
145-
}
146143

147144
deductedAmountAtTime := txInfo.DeductedAmount.FormatWithConversionsAtTime(handlers.account.Coin(), timestamp, accountConfig.RateUpdater)
148145
amountAtTime := txInfo.Amount.FormatWithConversionsAtTime(handlers.account.Coin(), timestamp, accountConfig.RateUpdater)

0 commit comments

Comments
 (0)