Pink2Dev / Pink2

Pinkcoin 2 Qt wallet and daemon
https://getstarted.with.pink/
MIT License
29 stars 22 forks source link

Retargeting fix #27

Closed aistrych closed 5 years ago

aistrych commented 5 years ago

Fix GetNextTargetRequired function calculating new target value. For every second block after PoS<->FPoS flip nActualSpacing was calculated as a difference between FPoS and PoS blocks (instead of PoS and PoS or FPoS and FPoS) which could lead to too big / too small time difference and wrong difficulty values.