aboutsummaryrefslogtreecommitdiff
path: root/src/sync.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2012-05-28 18:45:12 +0000
committerLuke Dashjr <[email protected]>2012-08-23 18:38:22 +0000
commitc3f95ef13f48d21db53992984976eac93e7a08fc (patch)
tree0caa89a1b21692c7e9a1dc03404280455186773f /src/sync.cpp
parentJSON-RPC: Add "blocktime" and (for wallet transactions) "timereceived" to tra... (diff)
downloaddiscoin-c3f95ef13f48d21db53992984976eac93e7a08fc.tar.xz
discoin-c3f95ef13f48d21db53992984976eac93e7a08fc.zip
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.
Diffstat (limited to 'src/sync.cpp')
0 files changed, 0 insertions, 0 deletions