Fix self-forking issues

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

Fix self-forking issues