<blockquote>
<p>My original understanding of mining is to pick a timestamp (the timestamp of when miners started mining) and then fix it.</p>
</blockquote>
<p>There's no reason for that to be the case, as mining is progress-free. It is actually an advantage to update the timestamp in some cases, as it means that new proof of work can be attempted without needing to update the <code>extraNonce</code> value to something new. Each new second, it is as if a new work unit has been generated for free.</p>
<blockquote>
<p>So I am wondering how bitcoin miners choose timestamps when mining in the real world.</p>
</blockquote>
<p>Many pieces of public pool software tend to update the work every 30 seconds, which would mean that you would expect mined block timestamps to be within 30 seconds or less of the actual wall time. Beyond the fairly loose restrictions placed by Bitcoin's consensus rules on timestamps, there's nothing preventing anybody from simply choosing their own arbitrary rules for how and why they might set the clock.</p>
<blockquote>
<p>One of the strategies that can lead to the distribution above I can imagine is: Miners change the timestamp frequently according to real-time timestamp. But I failed to find any relevant information about this strategy...</p>
</blockquote>
<p>That's not an unreasonable assumption based on the information available, but you're probably not going to find much more than that. Time in Bitcoin is fairly loosely considered to begin with; so long as things trend towards at least sundial accuracy, and meet the consensus rules, it doesn't impact the security of the system particularly.</p>

CC BY-SA 4.0
2021-10-28T10:36:35.960Z
2021-10-28T10:51:43.593Z
2021-10-28T10:51:43.593Z
Claris
<p>I did a statistic about the difference between the first announcement time in the network and the timestamp in block header for blocks within 2020. Surprisingly, most (93%) differences are less than 100 seconds. One of the possible reasons is my statistic is wrong, but if the result is accurate, I am really curious about the reason behind it.</p>
<p>My original understanding of mining is to pick a timestamp (the timestamp of when miners started mining) and then fix it. After that, the miner chooses different nonces to solve the puzzle. However, this strategy seems can not result in the distribution of differences above. So I am wondering how bitcoin miners choose timestamps when mining in the real world.</p>
<p>One of the strategies that can lead to the distribution above I can imagine is: Miners change the timestamp frequently according to real-time timestamp. But I failed to find any relevant information about this strategy...</p>

<mining-pools><mining-theory><timestamp>
How bitcoin miners choose timestamp in block header when mining?
sphpmp
# How bitcoin miners choose timestamp in block header when mining?

(Asked by: username_0 on 2021-10-28)

I did a statistic about the difference between the first announcement time in the network and the timestamp in block header for blocks within 2020. Surprisingly, most (93%) differences are less than 100 seconds. One of the possible reasons is my statistic is wrong, but if the result is accurate, I am really curious about the reason behind it.

My original understanding of mining is to pick a timestamp (the timestamp of when miners started mining) and then fix it. After that, the miner chooses different nonces to solve the puzzle. However, this strategy seems can not result in the distribution of differences above. So I am wondering how bitcoin miners choose timestamps when mining in the real world.

One of the strategies that can lead to the distribution above I can imagine is: Miners change the timestamp frequently according to real-time timestamp. But I failed to find any relevant information about this strategy...

**Tags:** mining-pools, mining-theory, timestamp


---

## 1 answers

### Answer by username_1 on 2021-10-28. Score: 5 | Accepted answer

> My original understanding of mining is to pick a timestamp (the timestamp of when miners started mining) and then fix it.

There's no reason for that to be the case, as mining is progress-free. It is actually an advantage to update the timestamp in some cases, as it means that new proof of work can be attempted without needing to update the `extraNonce` value to something new. Each new second, it is as if a new work unit has been generated for free.

> So I am wondering how bitcoin miners choose timestamps when mining in the real world.

Many pieces of public pool software tend to update the work every 30 seconds, which would mean that you would expect mined block timestamps to be within 30 seconds or less of the actual wall time. Beyond the fairly loose restrictions placed by Bitcoin's consensus rules on timestamps, there's nothing preventing anybody from simply choosing their own arbitrary rules for how and why they might set the clock.

> One of the strategies that can lead to the distribution above I can imagine is: Miners change the timestamp frequently according to real-time timestamp. But I failed to find any relevant information about this strategy...

That's not an unreasonable assumption based on the information available, but you're probably not going to find much more than that. Time in Bitcoin is fairly loosely considered to begin with; so long as things trend towards at least sundial accuracy, and meet the consensus rules, it doesn't impact the security of the system particularly.


---

