Files
eranos/src
Alex Gleason 63e2a7d1a8 Stamp SP UTXOs with real block timestamps from Blockbook
The HD wallet's silent-payment receives synthesised their timestamp from
block height using a 600-seconds-per-block constant anchored at block
800,000. Real average block time is shorter than 600s, so cumulative
drift on recent heights pushes the estimate days into the future and the
tx list rendered '-11d ago' for fresh receives.

Fetch the actual block timestamp from Blockbook's getBlock at scan time
and persist it on each SPStoredUtxo. Existing docs without the field
are backfilled opportunistically on the first session that loads them
(bounded to 50 unique heights per session to avoid hammering Blockbook
on wallets with deep history).

The synthetic estimate is preserved as a fallback for the rare case
that Blockbook is unreachable and clamped to 'now' so it can never
report a future timestamp. The relative-time formatter in HDWalletPage
and WalletPage also clamps negative diffs to 'Today' as a final guard.

Regression-of: 059f75db
2026-05-21 23:47:54 -05:00
..
2026-04-30 13:19:22 +07:00
2026-04-17 16:22:33 +05:45
2026-05-13 18:35:03 -05:00