Join GitHub today
blockchain: ensure the block timestamp can't go below recent median #5902
Mention template somewhere. Just saying 'block timestamp' is unclear to me as it could apply to any block in the chain.
In fact the template generator isn't even a consensus function it all, it is just a convenience for miners, and in that sense quite different from the rest of the 'blockchain' code.
Such a template would yield an invalid block, though would require an attacker to have mined a long blockchain with drifting times (assuming the miner's clock is roughly correct) Fixed by crCr62U0