# Timedrift exploit on PoS coins to increase minting probability

**URL:** <https://talk.peercoin.net/t/timedrift-exploit-on-pos-coins-to-increase-minting-probability/3338>\
**Category:** Protocol\
**Created:** [February 17, 2015, 9:59am UTC](https://talk.peercoin.net/t/timedrift-exploit-on-pos-coins-to-increase-minting-probability/3338 "2015-02-17T09:59:33Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![kactech](https://talk.peercoin.net/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@kactech](https://talk.peercoin.net/u/kactech)\
**Post date:** [February 19, 2015, 10:33am UTC](https://talk.peercoin.net/t/timedrift-exploit-on-pos-coins-to-increase-minting-probability/3338/17 "2015-02-19T10:33:58Z")

</div>

[member=30004]thehuntergames[/member]  
Example: you’ll be able to mint

> <https://github.com/peercoin/peercoin/blob/master/src/main.cpp>

` // Check timestamp against prev
if (GetBlockTime() <= pindexPrev->GetMedianTimePast() || GetBlockTime() + nMaxClockDrift < pindexPrev->GetBlockTime())
return error("AcceptBlock() : block's timestamp is too early");`

Your stake(/block) time have to be higher than median of past 11 blocks.

---

_[View the full topic](https://talk.peercoin.net/t/timedrift-exploit-on-pos-coins-to-increase-minting-probability/3338)._
