Block time, MedianTimePast, and future limits
Terms used in this lesson
- Proof-of-work target
- The maximum header-hash value accepted for a block; lowering it makes valid hashes harder to find.
Validate a candidate timestamp against the median of the previous eleven blocks and the receiving node's two-hour future-time limit.
Loading lesson visuals...
Learn the idea
A block header carries one unsigned 32-bit Unix timestamp, but that number is not accepted simply because a miner wrote it. Contextual validation requires the candidate time to be strictly greater than MedianTimePast, the median of the preceding eleven block timestamps. A node also rejects a newly received block whose time is more than two hours ahead of its adjusted network time.
Collect the previous eleven times
Follow the candidate's selected parent branch and read the timestamps of that parent plus its ten ancestors. Times on a different branch do not enter this candidate's MedianTimePast.
Inspect every idea above to open it.
Ten minutes is the long-run target interval. Individual block times vary, and timestamp validity uses MedianTimePast plus a future-time limit rather than a ten-minute schedule.
The questions unlock after every required learning activity
Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.