HomePhabricator

Choose reasonable "smart" times to display for transactions
c3f95ef13f48Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Choose reasonable "smart" times to display for transactions

Logic:

  • If sending a transaction, assign its timestamp to the current time.
  • If receiving a transaction outside a block, assign its timestamp to the current time.
  • If receiving a block with a future timestamp, assign all its (not already known) transactions' timestamps to the current time.
  • If receiving a block with a past timestamp, before the most recent known transaction (that we care about), assign all its (not already known) transactions' timestamps to the same timestamp as that most-recent-known transaction.
  • If receiving a block with a past timestamp, but after the most recent known transaction, assign all its (not already known) transactions' timestamps to the block time.

Details

Provenance
Luke Dashjr <luke-jr+git@utopios.org>Authored on May 28 2012, 18:45
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGbdbfd2329a92: JSON-RPC: Add "blocktime" and (for wallet transactions) "timereceived" to…
Branches
Unknown
Tags
Unknown

Event Timeline

Luke Dashjr <luke-jr+git@utopios.org> committed rSTAGINGc3f95ef13f48: Choose reasonable "smart" times to display for transactions (authored by Luke Dashjr <luke-jr+git@utopios.org>).Aug 23 2012, 18:38