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