hm, there seem to be problems with KGW
DRK-thread:
https://bitcointalk.org/index.php?topic=421615.8580Cryddit wrote there:
"The kgw exploit is real.
The problem is that the software will accept blocks that are timestamped earlier than previous blocks, (for good reasons) up to the median timestamp of the previous 11.
Kgw counts these as very fast blocks and adjusts the difficulty up by its 20% maximum. Once. But you can use that once to roll the timestamp back after five blocks that are long enough to drive the difficulty 20%lower each.
So the exploit is to start mining your own block chain, time stamping several blocks into the future far enough to get the maximum downward adjustment of difficulty each time. Then jump backwards in time getting the maximum upward difficulty once. Rinse, repeat, and your chain gets ridiculous low difficulty and you mine a whole lot of blocks while advancing your timestamp not much further than the main chain.
When the time in the main block chain catches up, you release your own chain and force a reorganization, which allocates to you all the coins mined for the last umpty ump blocks."
the DRK-dev eduffield is "cleaning" KGW for DRK: DarkGravity
please have a look after this while implementing KGW in PTS, maybe DarkGravity works better