Page MenuHomePhabricator

[Cashtab] Fallback to block time if timeFirstSeen is zero
ClosedPublic

Authored by bytesofman on Nov 26 2022, 07:49.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABCb17d944a7ddb: [Cashtab] Fallback to block time if timeFirstSeen is zero
Summary

T2806

If chronik has not seen a tx, timeFirstSeen will be zero and Cashtab will parse the tx as having been sent in 1970.

Fall back to blocktime in this case to get a mostly accurate time estimate.

Test Plan

Ping me on Telegram for a wallet seed with some txs in this category
Import at cashtab.com and note wrong dates
npm start and confirm accurate dates

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable