HomePhabricator

[Cashtab] Fallback to block time if timeFirstSeen is zero

Description

[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

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Differential Revision: https://reviews.bitcoinabc.org/D12648

Details

Provenance
bytesofmanAuthored on Nov 26 2022, 07:47
bytesofmanPushed on Nov 26 2022, 13:22
Reviewer
Restricted Project
Differential Revision
D12648: [Cashtab] Fallback to block time if timeFirstSeen is zero
Parents
rABC98b7db837318: [avalanche] Enable avalanche by default
Branches
Unknown
Tags
Unknown