When a miner adds the Timestamp to a block template, it must satisfy two conditions:
- Timestamp must be greater than the Median Timestamp of the previous 11 blocks
- Timestamp must be less than its local Network Adjusted Time (current time) + 2 hours
My question is whether a miner could 'postdate' the Timestamp up to 2 hours into the future, and still have the block be accepted as valid by other nodes? A similar question was asked and answered here:
https://bitcoin.stackexchange.com/a/85621/142060
If a block's timestamp is in the future, it won't be accepted [by other nodes]
However, this answer doesn't specifically address the case of when the Timestamp is within that 2 hour window. Isn't it true that a node would accept a 'postdated' Timestamp if it was within 2 hours of its local Network Adjusted Time?
If so, what are the implications of a significant percentage of miners doing this? It seems that miners could artificially increase the trailing Median Timestamp. Could this be used as an attack vector against other miners running the default getblocktemplate
in Bitcoin Core? Specifically, would other miners produce invalid blocks if their Network Adjusted Time is earlier than the Median Timestamp?
Thank you