main.h fix self-forking issues

Fix self-forking issues, caused by minimum proof-of-stake calculation
Merge pull request #4 from digiwhite/patch-2

main.h fix self-forking issues