Add previous block checking in the proof-of-stake miner

This should help against orphans