Fixing proof-of-stake detection

Fixes #569