Page MenuHomePhabricator

Storage block arrival time
Open, Needs TriagePublic

Description

We would like to store the time blocks arrive so that we can determine their arrival sequence.

Event Timeline

CBlockIndex entries already have an nSequenceId, which may serve the same purpose. It not persisted, however, and set to 0 for all blocks on disk and incremented for each block received while the process is running.

What is the need for an arrival timestamp? Should it replace nSequenceId? Does it need to be persisted? Backfilled?

May be related to T208 which adds tracking of header received time. However there's no intention of persisting this value for the selfish mining case. We can improve on it and persist that timestamp if we need to.